Does anyone see anything wrong with this code?
It returns:
In this case, the value in the DB is 993 and the field type is bigint
PHP:
<?php
$mysqli = new mysqli("localhost", "db", "pw", "user");
$query = "SELECT ID FROM wp_posts WHERE post_title = 'some post'";
$id = mysqli_query($mysqli, $query);
echo var_dump($id);
?>
It returns:
PHP:
object(mysqli_result)#2 (0) { }
In this case, the value in the DB is 993 and the field type is bigint