Can I auto fill pages? New to PHP :S

Discussion in 'PHP' started by busman3000, Jul 9, 2008.

  1. Danltn

    Danltn Well-Known Member

    Messages:
    679
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #21
    Doubt it, one database with all the school names... 3 columns (e.g. 3), School name and say, your comments + id field.

    if ( !($result = mysql_query('SELECT schoolname,comments FROM `schools` WHERE `id` = ' . intval($_GET['sid']  . ' LIMIT 1; '), $connect)) ) throw new Exception( mysql_error($connect), mysql_errno($connect) );
    list( $school, $comments ) = mysql_fetch_array( $result, MYSQL_NUM );
    PHP:
    Then you have $school and $comments to do with what you like.

    If you really don't understand this, why not pay someone?

    I'm right here ;)
     
    Danltn, Jul 9, 2008 IP