RE: [PHP] Re: catch the error

2009-02-27 Thread Boyd, Todd M.
-Original Message- From: Chris [mailto:dmag...@gmail.com] Sent: Thursday, February 26, 2009 6:38 PM To: Boyd, Todd M. Cc: PHP General list Subject: Re: [PHP] Re: catch the error Boyd, Todd M. wrote: -Original Message- From: Chris [mailto:dmag...@gmail.com] Sent

Re: [PHP] Re: catch the error

2009-02-26 Thread Andrew Ballard
What does this output? ? //include (../lib/db1.php);// Connect to database $db_host = 'biggie'; $db_user = 'root'; $db_pass = 'gu...@#$'; $db_name = 'biblane'; $db_connect = mysql_connect($db_host, $db_user, $db_pass); if (!is_resource($db_connect)) { echo 'p$db_connect is not a valid

Re: [PHP] Re: catch the error

2009-02-26 Thread Ashley Sheridan
On Thu, 2009-02-26 at 13:34 -0500, Darryle Steplight wrote: Hi PJ, $db_host = 'biggie'; $db_user = 'root'; $db_pass = 'gu...@#$'; $db_name = 'biblane'; Everyone here is trying to help you and that's cool, but EVERYONE on this list may not be so nice. The above credentials is

Re: [PHP] Re: catch the error

2009-02-26 Thread Darryle Steplight
Additionally regarding the error handling , add this to the op of your script. ini_set(display_errors,true); error_reporting(E_STRICT|E_ALL); and post the output of your error message. On Thu, Feb 26, 2009 at 1:40 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Thu, 2009-02-26 at 13:34

Re: [PHP] Re: catch the error

2009-02-26 Thread 9el
But the question is PJ, have you got it out of errors yet? :) www.twitter.com/nine_L www.lenin9l.wordpress.com --- Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get a Free CD of Ubuntu mailed to your door

Re: [PHP] Re: catch the error

2009-02-26 Thread PJ
Ashley Sheridan wrote: On Thu, 2009-02-26 at 13:34 -0500, Darryle Steplight wrote: Hi PJ, $db_host = 'biggie'; $db_user = 'root'; $db_pass = 'gu...@#$'; $db_name = 'biblane'; Everyone here is trying to help you and that's cool, but EVERYONE on this list may not be so nice. The

Re: [PHP] Re: catch the error

2009-02-26 Thread Ashley Sheridan
On Thu, 2009-02-26 at 13:56 -0500, PJ wrote: Ashley Sheridan wrote: On Thu, 2009-02-26 at 13:34 -0500, Darryle Steplight wrote: Hi PJ, $db_host = 'biggie'; $db_user = 'root'; $db_pass = 'gu...@#$'; $db_name = 'biblane'; Everyone here is trying to help you and that's

Re: [PHP] Re: catch the error

2009-02-26 Thread PJ
Here's the working code... ? //include (../lib/db1.php);// Connect to database $db_host = ''; $db_user = ''; $db_pass = ''; $db_name = ''; $db = mysql_connect($db_host, $db_user, $db_pass); mysql_select_db($db_name,$db); $sql1 = INSERT INTO test (name, age) VALUES

Re: [PHP] Re: catch the error

2009-02-26 Thread PJ
Ashley Sheridan wrote: On Thu, 2009-02-26 at 13:56 -0500, PJ wrote: Ashley Sheridan wrote: On Thu, 2009-02-26 at 13:34 -0500, Darryle Steplight wrote: Hi PJ, $db_host = 'biggie'; $db_user = 'root'; $db_pass = 'gu...@#$'; $db_name = 'biblane'; Everyone here is

RE: [PHP] Re: catch the error

2009-02-26 Thread Boyd, Todd M.
-Original Message- From: PJ [mailto:af.gour...@videotron.ca] Sent: Thursday, February 26, 2009 1:16 PM To: a...@ashleysheridan.co.uk Cc: Darryle Steplight; Ricardo Dias Marques; php-general@lists.php.net; MySql Subject: Re: [PHP] Re: catch the error Ashley Sheridan wrote

Re: [PHP] Re: catch the error

2009-02-26 Thread Ashley Sheridan
On Thu, 2009-02-26 at 14:15 -0500, PJ wrote: Ashley Sheridan wrote: On Thu, 2009-02-26 at 13:56 -0500, PJ wrote: Ashley Sheridan wrote: On Thu, 2009-02-26 at 13:34 -0500, Darryle Steplight wrote: Hi PJ, $db_host = 'biggie'; $db_user = 'root'; $db_pass =

Re: [PHP] Re: catch the error

2009-02-26 Thread Shawn McKenzie
Boyd, Todd M. wrote: Jesus Christ... everyone on this list must've had a long week, because you guys are going blind. :D In examples sent to you, people foolishly replaced your $db var with $db_connect ONLY FOR PART OF THE SCRIPT. You've defined your database connection as $db_connect in

Re: [PHP] Re: catch the error

2009-02-26 Thread Chris
In examples sent to you, people foolishly replaced your $db var with $db_connect ONLY FOR PART OF THE SCRIPT. You've defined your database connection as $db_connect in some versions of the source, but then you reference $db (without _connect) in your mysql_select call in that same source. $db

RE: [PHP] Re: catch the error

2009-02-26 Thread Boyd, Todd M.
-Original Message- From: Chris [mailto:dmag...@gmail.com] Sent: Thursday, February 26, 2009 4:16 PM To: Boyd, Todd M. Cc: PJ; PHP General list Subject: Re: [PHP] Re: catch the error In examples sent to you, people foolishly replaced your $db var with $db_connect ONLY FOR PART

Re: [PHP] Re: catch the error

2009-02-26 Thread PJ
Shawn McKenzie wrote: Boyd, Todd M. wrote: Jesus Christ... everyone on this list must've had a long week, because you guys are going blind. :D In examples sent to you, people foolishly replaced your $db var with $db_connect ONLY FOR PART OF THE SCRIPT. You've defined your database

Re: [PHP] Re: catch the error

2009-02-26 Thread PJ
Ashley Sheridan wrote: On Thu, 2009-02-26 at 14:15 -0500, PJ wrote: Ashley Sheridan wrote: On Thu, 2009-02-26 at 13:56 -0500, PJ wrote: Ashley Sheridan wrote: On Thu, 2009-02-26 at 13:34 -0500, Darryle Steplight wrote: Hi PJ,

Re: [PHP] Re: catch the error

2009-02-26 Thread Chris
Boyd, Todd M. wrote: -Original Message- From: Chris [mailto:dmag...@gmail.com] Sent: Thursday, February 26, 2009 4:16 PM To: Boyd, Todd M. Cc: PJ; PHP General list Subject: Re: [PHP] Re: catch the error In examples sent to you, people foolishly replaced your $db var with $db_connect

Re: [PHP] Re: catch the error

2009-02-26 Thread 9el
www.lenin9l.wordpress.com On Fri, Feb 27, 2009 at 6:37 AM, Chris dmag...@gmail.com wrote: Boyd, Todd M. wrote: -Original Message- From: Chris [mailto:dmag...@gmail.com] Sent: Thursday, February 26, 2009 4:16 PM To: Boyd, Todd M. Cc: PJ; PHP General list Subject: Re: [PHP] Re: catch the error