mysql_query("SELECT * FROM artistimages WHERE artist_name_id=".(int)$artistID . 'ODER BY DESC');
Where am i going wrong guys
thanks
mysql_query("SELECT * FROM artistimages WHERE artist_name_id=".(int)$artistID . 'ODER BY DESC');
Where am i going wrong guys
thanks
You don’t need to tell the query that its using an interger. It knows what it is by the quotes. If the column type is int, then you don’t need quotes. and you don’t need single quotes around ORDER BY DESC. Also missing the closing ".
mysql_query(“SELECT * FROM artistimages WHERE artist_name_id= $artistID ODER BY DESC”);