0

I am facing a real weird problem. Mysqli_query works fine in my localhost but not on the server. These are the following things I have checked -

  1. Php version. My localhost php version is 5.6 and even my server's php version is 5.6.
  2. I checked whether the query is generated properly. The query for which I am getting false as the result is as follows :-

_

$qquery = "select uniqueID,question,emailgroup,email,if_read from 
  expert_questions where id=$id;";

which generates the following query after echo :-

select uniqueID,question,emailgroup,email,if_read from expert_questions where id=955;

Now this query, executes totally fine in the localhost and gives me perfect results in the localhost. Also I tried to execute this query in the server's database, it gives me output too.

  1. I also checked whether the php files are not having mysql_connect commands, and it did have them. So I changed the whole code mysql improvised version.

The weirdest problem is that, that particular query works totally fine for ids less than 900. But it does not work for ids greater than 900 as I showed above about id=955. Please help me out. Thank you.

jasinth premkumar
  • 1,430
  • 1
  • 12
  • 22
Krish Bhanushali
  • 170
  • 1
  • 1
  • 8

0 Answers0