Results 1 to 6 of 6

Thread: select count(*) value *resolved*

Threaded View

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    select count(*) value *resolved*

    PHP Code:
    $countquery="SELECT COUNT(*) FROM guestbook";

    $pagecount=mysql_query($countquery); 
    Now that the query has been executed, how can I access the value of the number returned by the countquery?

    I do an echo $pagecount, and it returns to me:


    Resource id #3
    Last edited by mendhak; Feb 7th, 2003 at 12:18 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width