PHP mysqli error return time
- by Dori
Hello.
Can i ask a fundamental question. Why when I try to create a new mysqli object in php with invalid database infomation (say an incorrect database name) does it not return an error intstantly? I usually program server stuff in Java and something like this would throw back an error strait away, not after 20 seconds or so.
For example
$conn = new mysqli($host, $username, $password, $database);
Thanks!