Hi
when I use the "improved" version of mysql function
$link = @mysqli_connect($h, $u, $p, $d);
it works, but when I use it as a class
$link = new mysqli($h, $u, $p, $d);
I get "undefined class" error. so I assume, I'm missing some library files?
What do you mean by "it works"? Remove the error suppression operator from the first example. Does it still work?
Hi laserlight
it works means I can connect to the localhost. Please, forget about the error supression operator :p
I tried it again today and both the function and the oop version worked. But when I posted this problem, the oop version kept giving me the "undefined class" error. I think I did something wrong back then.
thanks~