Hello there, everyone,
I'm trying to convert my stuff over to PDO and I've been doing ok but for some reason, I can't figure out what's causing the error on this one. Could someone help me with what I'm failing to fix?
PHP 8.3
$banchk = $db->run("SELECT id, public_note, type FROM bans WHERE ip = ? OR ( $usr['id'] <> ? AND user_id = ? ) AND ( ban_end = ? OR ban_end > ? )", [$usr['ip'], '0', $usr['id'], '0', $rightnow])->fetch();
Error:
Error: syntax error, unexpected string content "", expecting "-" or identifier or variable or number