[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

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 the

Re: [PHP] MySQL query not working!

2010-03-31 Thread Andre Polykanine
message - From: Parham Doustdar parha...@gmail.com To: php-general@lists.php.net 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

Re: [PHP] MySQL query not working!

2010-03-31 Thread Parham Doustdar
Subject: Re: [PHP] MySQL query not working! Hello Parham, Adding to Ash's question, why to use the @ operator before mysql_query? -- With best regards from Ukraine, Andre Skype: Francophile; WlmMSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ

Re: [PHP] MySQL query not working!

2010-03-31 Thread Alexey Bovanenko
- Original message - From: Parham Doustdar parha...@gmail.com To: php-general@lists.php.net 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

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

2010-03-31 Thread Andre Polykanine
Subject: Re: [PHP] MySQL query not working! Hello Parham, Adding to Ash's question, why to use the @ operator before mysql_query? -- With best regards from Ukraine, Andre Skype: Francophile; WlmMSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine

Re: [PHP] MySQL query not working!

2010-03-31 Thread Ashley Sheridan
...@gmail.com Cc: php-general@lists.php.net Sent: Wednesday, March 31, 2010 4:41 PM Subject: Re: [PHP] MySQL query not working! Hello Parham, Adding to Ash's question, why to use the @ operator before mysql_query? -- With best regards from Ukraine, Andre Skype: Francophile; WlmMSN

Re: [PHP] MySQL query not working!

2010-03-31 Thread Midhun Girish
, 2010 4:41 PM Subject: Re: [PHP] MySQL query not working! Hello Parham, Adding to Ash's question, why to use the @ operator before mysql_query? -- With best regards from Ukraine, Andre Skype: Francophile; WlmMSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org

Re: [PHP] MySQL query not working!

2010-03-31 Thread Andrew Ballard
- From: Andre Polykanine an...@oire.org To: Parham Doustdar parha...@gmail.com Cc: php-general@lists.php.net Sent: Wednesday, March 31, 2010 4:41 PM Subject: Re: [PHP] MySQL query not working! Hello Parham, Adding to Ash's question, why to use the @ operator before mysql_query

Re: [PHP] MySQL query not working!

2010-03-31 Thread Midhun Girish
an...@oire.org To: Parham Doustdar parha...@gmail.com Cc: php-general@lists.php.net Sent: Wednesday, March 31, 2010 4:41 PM Subject: Re: [PHP] MySQL query not working! Hello Parham, Adding to Ash's question, why to use the @ operator before mysql_query? -- With best

Re: [PHP] MySQL query not working!

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

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