When you shop at amazon, u see when you open a browser it said "Welcome
Kent Nguyen".  You can do the same to FreeTrade here's how.

Put this code snipped in page_top or something



<?
$userID = $UserInfo["ID"];
if ($userID > 0)
{
        /* Trying to find out the addressID associated to the userID
        ** logged in.
        */

        $test = "SELECT * from user where ID=$userID";
        $databaseResults = mysql_query($test, $DatabaseLink);
        
        while ($row = mysql_fetch_array($databaseResults)
        {
                $login = $row["Login"];
                $addressID = $row["Address"];
        }
        
        /* Found addressID.  Now find out Name_First and Name_Last from
        ** address table and pass them to $last and $first variable.
        */

        $test1 = "SELECT * from address where ID=$addressID";
        $databaseResults = mysql_query($test1, $DatabaseLink);
        
        while($row = mysql_fetch_array($databaseResults)
        {
        $last = $row["Name_Last"];
        $first = $row["Name_First"];
        
        print ("Welcome <b>" . $first . " " . $last . "</b>!");
        }
}
else
{}

?>



------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Site:            http://www.working-dogs.com/freetrade/
Problems?:       [EMAIL PROTECTED]

Reply via email to