Re: Mysqli Error for Count (Distinct) Query
You deprived yourself of the info you need ... every DB call that can fail needs error handling, minimally ...
$result = mysqli_query($con,$sql) or exit( $con->error );
if ($res ) $count = mysqli_fetch_array($result);
else echo "$sql returned no result";
Subject
Written By
Posted
Re: Mysqli Error for Count (Distinct) Query
May 13, 2019 08:05PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.