here is the code
$lnk=mysql_connect("localhost", "", "") or die("cant connect to database");
$select = mysql_select_db ("contact"); // or die("cant select database");
$mysql="select * from names";
$mysql_result=mysql_query($mysql, $lnk);
$num_rows=mysql_num_rows($mysql_result);
this is the error. I keep getting this with database connections,
Warning: Supplied argument is not a valid MySQL result resource in /usr/local/home/httpd/vhtdocs/inc/personal.php on line 20
sorry there is no information
any help will be greatfully received, thank you