View Single Post
  #1 (permalink)  
Old August 15th, 2004, 01:05 AM
Steve Newbie Steve Newbie is offline
Registered User
 
Join Date: Aug 2004
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with echo from query result

What am I doing wrong?:

This is a query string in the code looking for the ID,Email, and NickName to whom a message wil be sent within the system/app :

            $tmp_arr = db_arr("SELECT ID, NickName, Email FROM Profiles WHERE ID=".(int)$_POST[caff_id_to]);

 A little later in the code I am trying to change an echo/print from ID to NickName:

 Using the following, the ID echos fine:
           <td width=15%> <?php echo"<b>TO:".$_GET[ID]."<b>"; ?>: </td><td width=85% align=left>

If I use the [NickName] instead, just a blank after TO:

            <td width=15%> <?php echo"<b>TO:".$_GET['NickName']."<b>"; ?>: </td><td width=85% align=left>


Tried to use <?php echo"<b>TO:".$tmp_arr['NickName']."<b>"; ?>
Also, does not work.

Help?




Reply With Quote