You are not logged in.

#1 2011-05-17 17:26:11

troncador
Member
Registered: 2011-05-17
Posts: 2

mysql php

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? tongue
If mysql work with php, what have I see in php.info() ?

(sorry for my bad English, sorry for my noobiestness)

Offline

#2 2011-05-17 19:01:50

troncador
Member
Registered: 2011-05-17
Posts: 2

Re: mysql php

=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

Board footer

Powered by FluxBB