count

A

Anonymous

Guest
is this code correct? but i got this error message 'Resource id #2'


<?
$Connect = mysql_connect("localhost","root","");
mysql_select_db("mw");
$result=mysql_query("select count(StaffID) from LeaveApplication1 where StaffID = 'fui'") ;
echo "$result";
mysql_close();
?>
 
in a future read forum carefuly:
http://www.php-forum.com/p/viewtopic.php?t=2627
 
LOL..... with all the tutorials in the world, and posts on this site that asked the same.....
 
Hey, liquedus and swirlee!
easy boys!
you're else fight together!
 
swirlee, there is a difference between not reading tutorials and not being familiar with the syntax of a language and wanting to see the most used or popular way of doing something. :wink:
 
Back
Top