mysql and PHP
I am using Mysql 5.0 and PHP 5.2.3 in XP. I can't connect php to mysql and get the error:
Fatal error: Call to undefined function mysqli_connect() in C:\Program Files\Apache Group\Apache2\htdocs\connect.php
even though I followed all the steps I am supposed to follow:
1. activate mysqli.dll in my.conf of mysql
2. copy it into window/system 32
3. change the directory path
4. copy php file and paste it in windows
5.restart apache
I did everything possibly I could do with the information availaable everywhere including the book. Nothing worked! I used this command:
<?php
$con = mysqli_connect("localhost","root","looser");
if (!$con { die('Could not connect: ' . mysql_error());}
mysql_close($con);
?>
am i supposed to use mysqli or mysql.. The error was on no matter what I did.. please help i am using XP
Thanks
|