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
Post a Comment