Page 1 of 1

How to stop error reporting

Posted: Sat Oct 24, 2009 8:54 am
by bonecone
This segment of code is causing me problems:

$q = mysql_query("select * from `calendar` where `month` = '".$this->month."' and `year` = '".$this->year."' order by `day` asc");

It generates the errors

Deprecated: Assigning the return value of new by reference is deprecated in /home/exp/public_html/inc/quick_calendar.inc.php on line 413

Deprecated: Assigning the return value of new by reference is deprecated in /home/exp/public_html/inc/quick_calendar.inc.php on line 414


I tried turning it off by placing at the top of the page:
error_reporting('E_ALL ~E_DEPRICATED');

but it doesn't have any effect. Is there some way I can change the mysql_query statement in order to stop these errors from appearing?

Re: How to stop error reporting

Posted: Sat Oct 24, 2009 11:02 am
by markusn00b
The query isn't the problem. Sounds like you're doing something like $x =& new something.