I always receive this error:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in
Here is my code:
$extra2 = mysql_fetch_array(mysql_query("SELECT desc from apps where id='$appid'"));
I always receive this error:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in
Here is my code:
$extra2 = mysql_fetch_array(mysql_query("SELECT desc from apps where id='$appid'"));
desc is a MySQL reserved word
Either rename it to something else, or wrap it in backticks:
("SELECT `desc` from apps ...
Jay's comment applies - Read up on those.Being:
As spencer7593 commented (thank you) and I quote:
SELECT apps.desc FROM appsI.e.:
("SELECT apps.desc FROM apps ...