- Joined
- Jun 11, 2008
- Messages
- 647
- Reaction score
- 182
Code:
<?
$user = $_SESSION['user'];
$credits = "Select credits From MEMB_CREDITS where memb___id='$user'";
$checkcredits = mssql_query( $credits );
$row = mssql_fetch_row($checkcredits);
if (isset($user))
{
echo "Welcome $user you have $row[0] Credits in Webshop!";
}
else
{
echo "Welcome Guest ";
}
?>
Last edited: