Jump to content

me102

Members
  • Posts

    43
  • Joined

  • Last visited

Posts posted by me102

  1. Ok heres what I want to do, I have a mysql table called settings which has 3 fields id,  name,  value  I want to use $settings['title'] to get the row named title and out put the value.

  2. My question is there an easyer way to get larg amounts of data from a sql database heres the code i'm using now.


    [code]
    $SQL = "select * from online_logs where forumid='$forum_id' order by `id` desc limit 1";
    $result = mysql_query( $SQL );
    while( $row = mysql_fetch_array( $result ) )
    {
    $set_ip = $row["ip"];
    $set_userid = $row["userid"];
    $set_id2 = $row["id2"];
    }
    [/code]

    instead of listing each row and giving them a value for ex. $set_ip = $row["ip"];


    Any ideas?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.