I am a new user. I have installed Apache, PHP and MySql. PHP works well (tested with simple script), MySQL works if I open a MySQL window, enter password and then set up basic tables. Both my PHP book and online tutorials ask me to use this simple piece of code:
CODE
<?php
$msg="You did not connect";
$user="root";
$server="localhost";
$pwd="******"
$conn=mysql_connect($server,$user,$pwd)
if($conn){
$msg="Congratulations, $user, you connected to MySQL";
?>
<html><head><title>connecting user</title></head>
<body>
<?php echo($msg); ?>
<?php echo("user is $user, server is $server, password is $pwd")
</body>
</html>
The code gave me a white page - no errors, nothing. I commented out the mysql_connect line and got the messages. I suspected that it has something to do with one of the .ini files so I downloaded php_mysqli.dll and libmysql.dll, set up a folder in apache and pointed the php extentions there, as well as updating the ini file to include the two new extension. Of course this also had no effect.
If you have any suggestions, I'd be very grateful for some help!!
Cheers