$result = mysql_query("SELECT * FROM subjects WHERE userid = '$user'");
if (!$result) {
echo "You have not added any subjects yet.";
}
There is nothing in the table subjects so it should give me the message. But it doesn't.
It was working but seems to have stopped without my doing anything to it.
if (!$result) {
echo "You have not added any subjects yet.";
}
There is nothing in the table subjects so it should give me the message. But it doesn't.
It was working but seems to have stopped without my doing anything to it.