Hello,
i get this error
mysql_fetch_array(): supplied argument is not a valid MySQL result resource in … line 20
this is my php code
[php]<?
session_start();
if ($_SESSION[‘user’])
{
include "connect2.php";
$user = ($_SESSION['user']);
if ($result)
{
echo 'Could not run query: ' . mysql_error();
exit;
}
$result = mysql_query("SELECT * FORM `$user` ");
while($row = mysql_fetch_array($result))
{
echo $row['jaar'];
}
}
else
{
echo'Go away!';
}
?>[/php]