Interview Question in Sql Server Views
Interview Question :: PHP coding question
$imgres = mysql_db_query("database", "select ID, URL1 from contacts where ID=$idno;");
$imgdata = mysql_fetch_row($imgres);
echo mysql_error();
?>
<p align="center"> <img border="1" src="<?php echo $imgdata[1]; ?>" alt="appropriate alt" />
</p>
This code doesn't seem to work....I've tried everything....here's the error messages I'm getting when trying to view it in the browser....
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/nethinga/public_html/Unt... on line 8
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
What I really don't understand, is that it worked earlier, and I messed with it and now it doesn't. I'm SOOOO FRUSTRATED with this....please help!@!@!@

Loading ...