With this code:"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Beelden</title>
</head>
<body>
<br><br>
<?php
$conn = mysql_connect("localhost","root","crowcrow");
echo $conn;
$db = mysql_select_db('beelden',$conn);
echo "$db db<br>";
$sql = mysql_query("SELECT * FROM kunst") or die ("Query failed");
echo "$sql sql<BR>";
$result = mysql_query($sql) or die(mysql_error());
$resultaat = mysql_query($sql);
echo $resultaat;
echo $sql;
echo "<table border=1 width=100%>\n";
echo "<tr><td> naam </td><td> informatie</td></tr>\n";
/*while ($rij = mysql_fetch_row($resultaat) or die(mysql_error())
{
printf ("<tr><td>%s %s</td><td>%s</td></tr>\n",
$rij[1], $rij[2], $rij[3]);
}*/
echo "</table>\n";
mysql_close($conn)
//mysql_free_result($uitslag);
?>
</body>
</html>
"
I get this error:"
Resource id #11 db
Resource id #2 sql
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 'Resource id #2' at line 1
"
De query works if I input it directly. I don't get what I did wrong.