Re: [PHP] MySQL query not working!

2010-03-31 Thread tedd
At 4:20 PM +0430 3/31/10, Parham Doustdar wrote: Hi there, Here is a snippet of code... that doesn't work for some reason. Please note that I have put some @mysql_query($query) or die(mysql_error()); statements, to see if MySQL gives an error. I receive nothing other than the file starting to d

Re: [PHP] MySQL query not working!

2010-03-31 Thread Andrew Ballard
On Wed, Mar 31, 2010 at 9:08 AM, Andrew Ballard wrote: > Nope. All it does is suppress the error message. Just try it: > > > @mysql_connect('localhost', 'baduser', 'badpassword') or die('Could > not connect'); > > ?> > > Output: > Could not connect > > @mysql_connect('localhost', 'baduser', 'bad

Re: [PHP] MySQL query not working!

2010-03-31 Thread Midhun Girish
should have put: > >> > >> if (mysql_num_rows($result)) > >> > >> rather than just > >> > >> if ($result) > >> > >> Thanks! > >> - Original Message - > >> From: "Andre Polykanine" >

Re: [PHP] MySQL query not working!

2010-03-31 Thread Andrew Ballard
t;> >> if (mysql_num_rows($result)) >> >> rather than just >> >> if ($result) >> >> Thanks! >> ----- Original Message - >> From: "Andre Polykanine" >> To: "Parham Doustdar" >> Cc: >> Sent: Wednesday,

Re: [PHP] MySQL query not working!

2010-03-31 Thread Midhun Girish
gt; > - Original Message - > > From: "Andre Polykanine" > > To: "Parham Doustdar" > > Cc: > > Sent: Wednesday, March 31, 2010 4:41 PM > > Subject: Re: [PHP] MySQL query not working! > > > > > > > Hell

Re: [PHP] MySQL query not working!

2010-03-31 Thread Ashley Sheridan
gt; Thanks! > - Original Message - > From: "Andre Polykanine" > To: "Parham Doustdar" > Cc: > Sent: Wednesday, March 31, 2010 4:41 PM > Subject: Re: [PHP] MySQL query not working! > > > > Hello Parham, > > > > Adding to Ash&#x

Re[2]: [PHP] MySQL query not working!

2010-03-31 Thread Andre Polykanine
arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elensule - Original message - From: Parham Doustdar To: Andre Polykanine Date: Wednesday, March 31, 2010, 3:20:54 PM Subject: [PHP] MySQL query not working! Andre, The @ op

Re: [PHP] MySQL query not working!

2010-03-31 Thread Alexey Bovanenko
kanine; ICQ: 191749952 > Twitter: m_elensule > > - Original message - > From: Parham Doustdar > To: php-general@lists.php.net > Date: Wednesday, March 31, 2010, 2:50:07 PM > Subject: [PHP] MySQL query not working! > > Hi there, > Here is a snippet of cod

Re: [PHP] MySQL query not working!

2010-03-31 Thread Parham Doustdar
tween the apostrophes is given. And, I found out what the problem was; I should have put: if (mysql_num_rows($result)) rather than just if ($result) Thanks! - Original Message - From: "Andre Polykanine" To: "Parham Doustdar" Cc: Sent: Wednesday, March 31, 2010

Re: [PHP] MySQL query not working!

2010-03-31 Thread Andre Polykanine
_elensule - Original message - From: Parham Doustdar To: php-general@lists.php.net Date: Wednesday, March 31, 2010, 2:50:07 PM Subject: [PHP] MySQL query not working! Hi there, Here is a snippet of code... that doesn't work for some reason. Please note that I have put some @mysql_query(

Re: [PHP] MySQL query not working!

2010-03-31 Thread Ashley Sheridan
On Wed, 2010-03-31 at 16:20 +0430, Parham Doustdar wrote: > Hi there, > Here is a snippet of code... that doesn't work for some reason. Please note > that I have put some > > @mysql_query($query) or die(mysql_error()); > > statements, to see if MySQL gives an error. I receive nothing other than

[PHP] MySQL query not working!

2010-03-31 Thread Parham Doustdar
Hi there, Here is a snippet of code... that doesn't work for some reason. Please note that I have put some @mysql_query($query) or die(mysql_error()); statements, to see if MySQL gives an error. I receive nothing other than the file starting to download. This is supposed to be a file download c

Re: [PHP] MySQL Query not working?

2001-05-15 Thread Julian Wood
gt; /_/\_\/_/_/_/ /_/ \/_/ /_/ /_/\_\/_/_/_//_/_/_/ > = > Telephone : (03) 9329 1455 Facsimile : (03) 9329 6755 > ***** We rent the dot in .COM! ** > > > -Original Message- >

RE: [PHP] MySQL Query not working?

2001-05-14 Thread Peter Houchin - SunRentals Australia
\/_/ /_/ /_/\_\/_/_/_//_/_/_/ = Telephone : (03) 9329 1455 Facsimile : (03) 9329 6755 * We rent the dot in .COM! ** -Original Message- From: Laurie Landry [mailto:[EMAIL PROTECTED]] Sent: Tuesda

[PHP] MySQL Query not working?

2001-05-14 Thread Laurie Landry
Hi, I've got this sql setup where $sql = "UPDATE CLASS_ADS SET client_id = \"$client_id\", date = \"$date\", category = \"$category\", title = \"$title\", description = \"$description\", contact_name = \"$contact_name\", contact_number = \"$contact_number\", email = \"$email\", url = \"$url\",