Can someone please tell me why this isn't working. When I run the query in PHPMYADMIN it reports the correct value.
// Create connection
$conn = new mysqli($servername, $username, $password, $database);
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$result = mysqli_query($conn, "SELECT COUNT('id') AS RowCount FROM 'needs' WHERE ('status'=100)");
echo $result;