php - Passing very long double values in mysqli_query misbehave -


i retrieve database records in specific range. query that

$query = "select * user_tags user_tags.lon>'$left' , user_tags.lon<'$right' , user_tags.lat<'$top' , user_tags.lat>'$bottom'"; 

and values vars contains -24.989144280552864 , 8.673474003099022

the problem if execute query in mysql cmd retruns records when being executed php null...

any ideas happening php? can not hold large values or negatives? thanks!

edit: full execution code

if($region === "3"){  $query = "select * user_tags user_tags.lon>'$left' , user_tags.lon<'$right' , user_tags.lat<'$top' , user_tags.lat>'$bottom'"; $data = mysqli_query($dbc, $query) or die(mysqli_error());//mysql_query($query);//mysqli_query($dbc, $query);     if (mysqli_num_rows($data) > 0) {                  while($row = mysqli_fetch_array($data))//mysqli_fetch_array         {             $lat = $row['lat'];             $lon = $row['lon'];               echo $lat.",".$lon."#";          }     }else{         echo "0";     }      mysqli_close($dbc);  

also in cases not have problems values of lat , lon nothing when should have retrieve something!


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -