when add die() before mysqli_query
it is working, but it is not working after mysqli_query
the same code was working when i'm using mysql_query
$db_host="localhost";
$db_user="root";
$db_password="";
$db_name="jilphar";
$con=mysqli_connect($db_host,$db_user,$db_password,$db_name);
//die("here"); working here
$rslt = mysqli_query($con,"select width,height from image_size where imageName='Admin Logo'");
$row = mysqli_fetch_assoc($rslt);
$imageHeight = $row["height"];
$imageWidth = $row["width"];
die("here"); // here not working
connection is working fine
If you remove firs die I think he will work :-)
There are many things that could go wrong.
If you are receiving a "blank" response from server(Response code: 200
).
It could mean that, the script encountered an error and the error was suppressed, due to a setting inside php.ini or during runtime.
If no response is received then it means that the query is taking more time than expected and you are thinking that the execution has stopped.
I mean It could be just that the query is taking lot of time to execute and you are thinking that the die
is not working.