Results 1 to 1 of 1

Thread: Echoing information from MySQL

  1. #1
    Join Date
    Sep 2007
    Posts
    83
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Echoing information from MySQL

    How would I make this code display the information that is coming from the DB differantly. These are check box fields from a form if checked the value is "count me in"
    I need each to display for instance $TH_SCALE displays "count me in" I need it to display on page as 8Th Scale, $ARENA_TRUCK as Arena Truck and so on.

    PHP Code:
    $i=0;
    while (
    $i $num) {

    $NAME=mysql_result($result,$i,"NAME");
    $TH_SCALE=mysql_result($result,$i,"TH_SCALE");
    $TH_SCALE_SPORTSMAN=mysql_result($result,$i,"TH_SCALE_SPORTSMAN");
    $ARENA_TRUCK=mysql_result($result,$i,"ARENA_TRUCK");
    $MONSTER_TRUCK=mysql_result($result,$i,"MONSTER_TRUCK");

    echo 
    "<b>$NAME<br>$TH_SCALE<br>$TH_SCALE_SPORTSMAN<br>$ARENA_TRUCK<br>$MONSTER_TRUCK<hr>";

    $i++;
    }

    ?> 
    Last edited by big-dog1965; 12-14-2007 at 07:48 AM.

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
  •