View Single Post
  #5   Spotlight this post!  
Unread 24-05-2004, 15:18
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
Re: MySQL/PHP Query question

Thank you all for your help. But while waiting for a reply, I was messing around with it, trying to see if I could fix it myself. I still have the same trouble, and here's my code now:

PHP Code:
$result mysql_query("SELECT `user` FROM information WHERE `user` = '"$user ."'");
if(!
$result){
 
$result mysql_query("INSERT INTO `information` (`user`, `pass`) VALUES('"$user ."', '"$pass ."')");
 if(!
$result){
  echo(
"Unable to add user: "$user ." to database.  Please try again.");
  exit;
 } else{
  echo(
"Thank you for registering <b>"$user ."</b>!  Please enjoy your stay here.");
 }
} else{
 echo(
"The username <b>"$user ."</b> was already found in the database.  Please go back and fix this problem.");

Anyone have any idea?
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"