ok back again
Posted: Sat May 15, 2004 5:48 pm
Thank you so much for helping with my last post.
I have another problem now. I want it to say 'Welcome (username)!' if the person is registered. Got that. I would like it to say 'Welcome Guest!' if they are not registered. Im still scratchin my head on this. (bout to be bald)
Heres what I have:
Thanks again for the excellent help!!
Perry
I have another problem now. I want it to say 'Welcome (username)!' if the person is registered. Got that. I would like it to say 'Welcome Guest!' if they are not registered. Im still scratchin my head on this. (bout to be bald)
Heres what I have:
Code: Select all
<?php
include ("db.php");
?>
<?php
$sql_member = mysql_query("SELECT us_name FROM twb_users WHERE us_id = '". $u_id ."'") or die (mysql_error());
if($sql_member){
list($name) = mysql_fetch_row($sql_member);
echo "Welcome $name!";
}
else{
echo "Welcome Guest!";
}
?>Perry