I just can't figure it out ! I learnt this from another tutorial , maybe it's the tut.
I realy dunno !
this is the code:
<?php
$db = mysql_connect("localhost", "root", "");
mysql_select_db("art",$db);
$result = mysql_query("SELECT * FROM table WHERE id=$id",$db);
$myrow = mysql_fetch_array($result);
echo "Name: ".$myrow["name"];
echo "<br>creator: ".$myrow["creator"];
echo "<br>resolution: ".$myrow["resolution"];
echo "<br>Size: ".$myrow["size"];
echo "<br>date: ".$myrow["date"];
?>
And I'm still gettin this :
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Inetpub\vhosts\phase02.org\httpdocs\test.php on line 12
where's the problem, can please someone help me !
Edited by Ripix, 13 September 2005 - 12:14 PM.
