I believe this feature is already coded in if you are using AUTOLOGIN. If you
look in the GENERATE_SID file in the actions directory you can see it.
I agree Kent, it is a needed "we care" feature.
Cheers.
Kit
Kent Nguyen <[EMAIL PROTECTED]> on 04/11/2000 06:44:54 PM
Please respond to "FreeTrade" <[EMAIL PROTECTED]>
To: FreeTrade <[EMAIL PROTECTED]>
cc: (bcc: Kit Plummer/MIS/MARINE MWR)
bcc: Kit Plummer/MIS/MARINE MWR
Subject: [FreeTrade] Customization
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]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Site: http://www.working-dogs.com/freetrade/
Problems?: [EMAIL PROTECTED]