I apologise in advance for this one it is probably very simple. Whenever I run the following script I get this error, I have looked at everyhting but cannot see the problem:
Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in /home/daniels/public_html/display.php on line 5
Here is the code:
[php]<?php
include(“connect.php”);
$query=“SELECT * FROM daniels_addresses”;
$result= mysql_query($query);
$num=mysql_numrows($result);
?>
First Name | Surname | |
---|---|---|
<? echo "$firstname"; ?> | <? echo "$lastname"; ?> | <? echo "$Email"; ?> |