I am trying to figure out why if there is an error in my query it throws
an error message to the screen instead of parsing the rest of my script
to get the rest of the information. I have error checking in my script
and if there is no information I want it to process and do things.
I run this:
?
You need to quote the $user:
$query = select * from quoteprefs where salesman = '$user';
- Original Message -
From: Robert Sossomon [EMAIL PROTECTED]
To: PHP List [EMAIL PROTECTED]
Sent: Monday, June 14, 2004 2:44 PM
Subject: [PHP] Erroring out?!
I am trying to figure out why
Robert Sossomon wrote:
I am trying to figure out why if there is an error in my query it throws
an error message to the screen instead of parsing the rest of my script
to get the rest of the information. I have error checking in my script
and if there is no information I want it to process and do
I think you need single quotes around $user.
$query = select * from quoteprefs where salesman = '$user';
I am trying to figure out why if there is an error in my query it throws
an error message to the screen instead of parsing the rest of my script
to get the rest of the information. I have
pages.
Any thoughts?
-Original Message-
From: Robert Sossomon [mailto:[EMAIL PROTECTED]
Sent: Monday, June 14, 2004 2:44 PM
To: PHP List
Subject: [PHP] Erroring out?!
I am trying to figure out why if there is an error in my query it throws
an error message to the screen instead
to javascript load 2 pages.
Any thoughts?
-Original Message-
From: Robert Sossomon [mailto:[EMAIL PROTECTED]
Sent: Monday, June 14, 2004 2:44 PM
To: PHP List
Subject: [PHP] Erroring out?!
I am trying to figure out why if there is an error in my query it throws
an error message
6 matches
Mail list logo