if($mysqli->connect_errno) works the way it is working now?
From what I know, $mysqli->connect_errno will return an integer and the last time I checked, you cannot
if(string){
do something
}else{
do another thing
}
isn't it boolean only intead of int...
public function conn(){
$mysqli = new mysqli(self::HOST, self::USERNAME, self::PASSWORD, self::DB_NAME);
if($mysqli->connect_errno){
echo $mysqli->connect_errno;
}else{
echo "Connection success";
}
}
This post has been edited by aklo: 26 June 2012 - 07:37 AM

New Topic/Question
Reply




MultiQuote



|