RE: [PHP] PHP/MySql Help

From: Date: Wed, 09 Apr 2003 21:22:01 +0000
Subject: RE: [PHP] PHP/MySql Help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-143211@lists.php.net to get a copy of this message
It looks okay, what error are you getting? Without an error your problem is hard to diagnose. You do realize that you are selecting and not inserting, right? It seems obvious, but you did not give any errors and the only thing that is really sticking out to me is your result identifier for a select is called $insert. > -----Original Message----- > From: UGADawgs6910@aol.com [mailto:UGADawgs6910@aol.com] > Sent: Wednesday, April 09, 2003 1:38 PM > To: php-general@lists.php.net > Subject: [PHP] PHP/MySql Help > > > Do you know why the following code wouldn't work? > > mysql_connect ("localhost", "crosse5_stringdo", "******") or die > ('I cannot > connect to the database because: ' . mysql_error()); > mysql_select_db ("crosse5_stringdoctororders"); > > > $insert = MYSQL_QUERY("SELECT ordernumber, name, emailaddy, > dateupdate, timeupdate, stickstatus, received, predicted, express, mail, > headnum, pocket, notes, payment FROM tracker where > ordernumber='$OrderNumber'"); > ?> > > I have no idea, please help! > > Daniel Wood > Stringdoctor.com >

« previous php.general (#143211) next »