Kent Nguyen wrote:
> 
> 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"];
The query below is unnecessary because this information is available in
the $UserInfo array, right?

> 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>!");
print("Welcome <b>" . prepareText($first) . " " . prepareText($last) . 
        "</b>!");

>         }
> }
> else
> {}
No need for the else statement if it doesn't do anything.

> 
> ?>

minor corrections, sorry.
-jj

-- 
if (shannon - jj) * behrens == webEngineer["CLEAR INK�"]:
    print "<i>imagination is the only real medium(sm)</i><br>"


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

Reply via email to