Results 1 to 5 of 5

Thread: another SQL question

Threaded View

  1. #1

    Thread Starter
    Fanatic Member nabeels786's Avatar
    Join Date
    Jul 2001
    Location
    New York
    Posts
    919

    another SQL question

    ive got

    PHP Code:
    $sql="SELECT gamename FROM reviews WHERE id='$id'";
    $result mysql_query($sql);   
    while (
    $row mysql_fetch_row($result)) {
                                            
    $gamename=$row['gamename'];

    }

    $sql="SELECT * FROM reviews WHERE gamename='$gamename'";
    $result mysql_query($sql);  
     
    while (
    $row mysql_fetch_row($result)) {
                                            
    //outputs the results into a table
    //new table for every review

    any problems with that? i want to get one id, but pull up reviews for multiple entries for that game.

    also, i'm a bit confused. suppose i have multiple reviews for the game x. wouldnt it pull up the first review it finds?
    Last edited by nabeels786; Apr 18th, 2002 at 07:18 PM.
    Visit www.fragblast.com
    Gaming, forums, and a online RPG/Battle system




    (__Flagg) DOT NET? is this a Hindi Dating service?

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