You are not logged in.
Pages: 1
Hi
I have install mysql and php
php work well, and mysql work well (in console mode)
But they don't work together:
I have made a simple code, but it don't work
<?php
$conexion = mysql_connect("localhost", "root", "*****");
mysql_select_db("moodle", $conexion);;
?>
Fatal error: Call to undefined function mysql_connect()
I have follow the advice of some forum of internet, and in the file php.ini I have te following line uncomment:
extension=mcrypt.so
extension=mysqli.so
extension=mysql.so
Any idea?
If mysql work with php, what have I see in php.info() ?
(sorry for my bad English, sorry for my noobiestness)
Offline
=P
I have found the error,
I use the command "php -m" to see the instaled module then I see the problem I made a mistake of syntax in php.ini
Offline
Pages: 1