Unable to query php string value in mySQL database -


passing query string in php when come number working fine come character showing no id found working fine in mysql server .kindly check following code

passing

<a  class=" btn btn-danger navbar-left" target="_blank" style="width:100%" rel="nofollow, noindex"" href="deals.php?id=<?php echo $row['productid'];?>">view offer</a> 

getting

<?php include 'connection.php'; $id = $_get["id"]; echo "id is".$id;     $query=mysql_query("select * sdmobiles productid='$id'") or die ("could not find ");  ?> 

and here page

with char http://sabkideal.com/deals.php?id=mobdxvtyvn6wchnz

with number id http://sabkideal.com/deals.php?id=645588442716

enter image description here


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -