Mysql vs mysqli connection problem
Mijn applicatie kan wel via mysqli connecten maar niet via mysql?
Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on
Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on
Code (php)
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
<?php
if (!$this->con_id = mysql_connect($this->host,$this->user,$this->password)){
trigger_error('Unable to create connection',E_USER_ERROR);
} else {
if (!mysql_select_db($this->database,$this->con_id)){
trigger_error('Error selecting database',E_USER_ERROR);
}
}
?>
if (!$this->con_id = mysql_connect($this->host,$this->user,$this->password)){
trigger_error('Unable to create connection',E_USER_ERROR);
} else {
if (!mysql_select_db($this->database,$this->con_id)){
trigger_error('Error selecting database',E_USER_ERROR);
}
}
?>
Gewijzigd op 01/01/1970 01:00:00 door Niborx Trump
Gesponsorde koppelingen:
Wees blij zou ik zeggen!
mysqli is de verbeterde/veiligere versie van mysql functies.
mysqli is de verbeterde/veiligere versie van mysql functies.



