I m totally new to php i just started to check the connectivity option of php with mysql.The code is given below
<?php
$db = mysql_connect("localhost", "root","dipal");
mysql_select_db("employee",$db);
$result = mysql_query("SELECT * FROM emp",$db);
printf("First Name: %s<br>\n", mysql_result($result,0,"name"));
?>
<?php
$db =mysql_connect("localhost", "root","dipal");
mysql_select_db("employee");
$result = mysql_query("SELECT * FROM emp");
$numrows = mysql_num_rows($result);
print "There are $numrows people in usertable\n";
?>
send me your whole code please