I wrote a few lines of code just to detect any problems and I unfortunately did. The following code returns an empty JSON array, only two square brackets with no content between them. I tried using geo with valid,existent values from the table places. Although, it works perfectly when I send these commands directly in the SQL tab at phpMyAdmin.
// TODO: search database for places matching $_GET["geo"]
$geo = $_GET["geo"];
if(ctype_alpha($_GET["geo"]) === TRUE)
{
$alpha_match = query("SELECT * FROM places WHERE MATCH(place_name, postal_code, admin_name1) AGAINST (? IN BOOLEAN MODE);",$geo);
}
else if(is_numeric($_GET["geo"]) === TRUE)
{
// do something
}
Below is how I've indexed my columns:
EDIT: This is what I receive: