PHP Classes

error trying to use class

Recommend this page to a friend!

      PHP MySQL to MySQLi  >  All threads  >  error trying to use class  >  (Un) Subscribe thread alerts  
Subject:error trying to use class
Summary:Fatal error: Can't use function return value in write context...
Messages:3
Author:mark kolb
Date:2015-12-28 12:19:34
 

  1. error trying to use class   Reply   Report abuse  
Picture of mark kolb mark kolb - 2015-12-28 12:19:34
Fatal error: Can't use function return value in write context in /var/www/vhosts/ubi.me/httpdocs/mysql2i.class.php on line 59

  2. Re: error trying to use class   Reply   Report abuse  
Picture of mark kolb mark kolb - 2015-12-28 12:22:24 - In reply to message 1 from mark kolb
BTW using PHP Version 5.4.41

  3. Re: error trying to use class   Reply   Report abuse  
Picture of Dave Smith Dave Smith - 2015-12-28 12:34:11 - In reply to message 1 from mark kolb
For versions of PHP < 5.6, change line 59...

if( empty(mysqli_errno($link)) ){

to

$errorCheck = mysqli_errno($link);
if( empty($errorCheck) ){


Dave