Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

count

General discussions related to php

Moderators: macek, egami, gesf

count

Postby superman » Tue Jul 22, 2003 5:22 am

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();
?>
superman
New php-forum User
New php-forum User
 
Posts: 36
Joined: Fri Jun 27, 2003 11:54 pm

Re: count

Postby WiZARD » Tue Jul 22, 2003 6:13 am

in a future read forum carefuly:
http://www.php-forum.com/p/viewtopic.php?t=2627
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Postby liquedus » Tue Jul 22, 2003 5:33 pm

LOL..... with all the tutorials in the world, and posts on this site that asked the same.....
liquedus
php-forum Active User
php-forum Active User
 
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada

Postby swirlee » Wed Jul 23, 2003 8:15 am

liquedus, it's neither necessary nor prudent to make fun of posters. Remember, you were a newbie once, too.
User avatar
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back

Postby WiZARD » Thu Jul 24, 2003 4:36 am

Hey, liquedus and swirlee!
easy boys!
you're else fight together!
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Postby liquedus » Thu Jul 24, 2003 5:01 pm

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:
liquedus
php-forum Active User
php-forum Active User
 
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada


Return to PHP General

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron