<?
$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...