Location: PHPKode > projects > NetLink > netlink_os/welcome.php
<?php
echo "<div align='center'>";
extract($_POST);
extract($_GET);
$user=$_SESSION['login'];
$NL = "N<small>ET</small>L<small>INK</small>";

include("db.php");

$user=strtolower($user);

$dbh=mysql_connect ($host,$mysql_user,$pass) or die ('MySQL Error: ' . mysql_error());
mysql_select_db ($table); 

extract($_POST);
$sql="SELECT * FROM Accounts WHERE Username='$user';";
$rs=mysql_query($sql,$dbh);

$row=mysql_fetch_array($rs);
$f_name=$row['FirstName'];
$l_name=strtolower($row['LastName']);
if ($l_name=="tsa_srhs")
  echo "Your address is: <a href='http://srhsptsa.org/' target='_blank' style='font-weight:bold;'>http://srhsptsa.org/</a>";
elseif ($f_name=="Kairu")
	echo "Your address is: <a href='http://netlink.kaibasoftware.com' target='_blank' style='font-weight:bold;'>http://NetLink.KaibaSoftware.com</a>";
elseif ($user=="gbaird")
	echo "Your address is: <a href='http://leadmine.nextnethosting.net/introduction.htm' target='_blank' style='font-weight:bold;'>http://LeadMine.NextNetHosting.net/</a>";
elseif ($user=="gwilliams")
	echo "Your address is: <a href='http://staples.com' target='_blank' style='font-weight:bold;'>http://Staples.com/</a>";		
else
  echo "Your address is: <a href='http://$l_name.srhs.net' target='_blank' style='font-weight:bold;'>http://$l_name.srhs.net</a>";
echo "</div>";

mysql_close($dbh);

echo "Welcome ".ucfirst($f_name)."!";
    echo "<br/><br/>";
	 if ($login=="admin")
	 		include("NIMDA_778.php");
	 else
	 {
			include("welcome_user.php");
		}
 ?>
Return current item: NetLink