Re: [PHP] ? simple solution for error resulting from upgrade to php5

2011-07-19 Thread Daniel Brown
On Tue, Jul 19, 2011 at 04:05, Dr Michael Daly wrote: > Hi > is there a simple solution here, other than reverting to php4? > An upgrade from php5 to php5 has resulted in an error msg in this line: > > if(  strlen($db_res ) > 0 ) { Change that to: if (is_object($db_res)) { > I under

Re: [PHP] ? simple solution for error resulting from upgrade to php5

2011-07-19 Thread Dr Michael Daly
Thanks Geert That has fixed it, with flying colours! Michael On 19.07.2011, at 10:05, Dr Michael Daly wrote: > Hi > is there a simple solution here, other than reverting to php4? > An upgrade from php5 to php5 has resulted in an error msg in this line: > > if( strlen($db_res ) > 0 ) { isn't th

Re: [PHP] ? simple solution for error resulting from upgrade to php5

2011-07-19 Thread Dr Michael Daly
Hi short_query_caching is referenced only once more in the script: if( $query_logging ) do_log("query.log",$PHP_SELF." - ".$q); if (preg_match('/^\s*delete/i', $q)) { $p = $query_db_handle->prepare($q); if (DB::isError($p) && $die_on_error ) { die ("P

Re: [PHP] ? simple solution for error resulting from upgrade to php5

2011-07-19 Thread Tamara Temple
On Jul 19, 2011, at 3:05 AM, Dr Michael Daly wrote: Hi is there a simple solution here, other than reverting to php4? An upgrade from php5 to php5 has resulted in an error msg in this line: if( strlen($db_res ) > 0 ) { I understand this is bec. php5 is object orientated. It says an Object

[PHP] ? simple solution for error resulting from upgrade to php5

2011-07-19 Thread Dr Michael Daly
Hi is there a simple solution here, other than reverting to php4? An upgrade from php5 to php5 has resulted in an error msg in this line: if( strlen($db_res ) > 0 ) { I understand this is bec. php5 is object orientated. It says an Object of class DB_result could not be converted to a string Th