I am trying to rewrite a script from php 5 to php 7. Can someone help me see why this is not working? Thank you!!
$db_connection = mysqli_connect($host, $user, $password, $database);
$sql = "SELECT BIN FROM listofbins WHERE PENDING='1' LIMIT 1";
$result = mysqli_query($db_connection,$sql);
$owew = mysqli_fetch_array($result, MYSQLI_ASSOC);
if ($owew[BIN] > '100') {
echo "Pending BIN over the number 100: $owew[BIN]";
exit;
}
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.