Results 1 to 7 of 7

Thread: Last, quick MySQL question

Threaded View

  1. #1

    Thread Starter
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Resolved Last, quick MySQL question

    I have several elements in a table with the same id number. If I try
    PHP Code:
    $result mysql_query("SELECT * FROM comments WHERE post_id = '$post_id'");
        if(!
    $result) {
            die(
    'Invalid query: ' mysql_error());}
        
    $row mysql_fetch_assoc($result); 
    It looks like it only grabs one with that id number and no others. What do I need to do?
    Last edited by Kasracer; Feb 21st, 2005 at 01:23 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