- Code: Select all
$check_tickets = mysqli_query($con,"SELECT count(*) FROM tickets");
if (mysqli_num_rows($check_tickets) > 0)
echo "no rows";
This is pretty standard, right? But when using it on localhost (xampp), I always get "no rows" even if there is plenty of rows.
When using my scripts on a shared server everything works just fine! What can possibly be wrong when it's working on a
hosted shared server, but not on the latest install of xampp?