SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: PHP Pagination problem, need some help !

  1. #1
    SitePoint Member
    Join Date
    Jan 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question PHP Pagination problem, need some help !

    I have a problem counting the row's in the table.

    $pages_query = mysql_query("SELECT COUNT(`id`) FROM nameslist WHERE abc = `a` ");

    I get this error:
    Warning: mysql_result(): supplied argument is not a valid MySQL result resource in C:\Program Files\EasyPHP 3.0\www\website\names\index.php on line 107

    The mysql query works without the " WHERE abc = `a` "
    I really need to count just the lines where the collumn " abc " is set to " a ".

  2. #2
    SitePoint Member
    Join Date
    Jan 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I resolved the problem.
    You can close this thread.

Bookmarks

Posting Permissions

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