error of bind parameter in php mysqli statement -
$statement= mysqli_prepare( $this->mysqli,'update empdata set name=?, email=?, phonenumber = ?, addressline1 =?, addressline2 =?, cityid =?, zip = ?, modifiedon = now() id = ?'); mysqli_stmt_bind_param($statement, 'sssssisi', trim($name), trim($email), trim(phnumber), trim(address1), trim(address2), $city=2, trim($zipcode), $id); mysqli_stmt_execute($statement); the query gives me error on server strict standards: value pass reference on line used trim , $city=2
locally runs fine, on server gives me above error?
is way write these query using mysqli?
Comments
Post a Comment