If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > can't make count(*) work :(

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-28-09, 11:58
hscorp hscorp is offline
Registered User
 
Join Date: Mar 2009
Posts: 11
can't make count(*) work :(

PHP Code:
$resultfiles mysql_query("SELECT count(*) FROM file");

echo 
"$resultfiles Files"
but it shows Resource id #13 Files

anyhelp
Reply With Quote
  #2 (permalink)  
Old 03-30-09, 12:50
guelphdad guelphdad is offline
Registered User
 
Join Date: Mar 2004
Posts: 440
Your problem is PHP code related. Look in the php manual on how to use mysql_fetch_row
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On