html - PHP mysql_fetch_assoc() error -


I am trying to retrieve the data collected in a function, in which my query is included Returning to the main page and printing it using a loop for a while, but I am getting this error:

  Warning: mysql_fetch_assoc () believes that the parameter 1 being resource, string given  

to return your result Try eg

  return $ query;  

Because you are returning the string (your mysql_result ($ query, 0) back 0th location column value only), a query for mysql_fetch_assoc Needs result ()


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -