ggp
01-24-2007, 04:15 AM
Hi.
I am getting this error. Could you help plzz? thanks
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\Online Services\Apache2\htdocs\searchexample1.php on line 49
line49: while ($row = mysql_fetch_array($result))
[/PHP]
<?php
$sql = ("SELECT * FROM ..... WHERE .....");
$conn = mysql_connect("","") OR DIE (mysql_error());
mysql_select_db("cartonlots", $conn) OR DIE (mysql_error());
$result = mysql_query ($sql, $conn);
echo "<TABLE BORDER=2>";
while ($row = mysql_fetch_array($result))
{
echo "<TR><TD>".$row["image_id"]."<TD>".$row["smdescription"]; }
echo "</TABLE>";
?>
[/PHP]
I am getting this error. Could you help plzz? thanks
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\Online Services\Apache2\htdocs\searchexample1.php on line 49
line49: while ($row = mysql_fetch_array($result))
[/PHP]
<?php
$sql = ("SELECT * FROM ..... WHERE .....");
$conn = mysql_connect("","") OR DIE (mysql_error());
mysql_select_db("cartonlots", $conn) OR DIE (mysql_error());
$result = mysql_query ($sql, $conn);
echo "<TABLE BORDER=2>";
while ($row = mysql_fetch_array($result))
{
echo "<TR><TD>".$row["image_id"]."<TD>".$row["smdescription"]; }
echo "</TABLE>";
?>
[/PHP]