I'm a relatively new PHP programmer, and I just started working with MySQL databases. WHen I try to connect to a database, I get this error:
Warning: driver initialization failed in C:\indigoperl\apache\htdocs\index.php on line 3
Couldn't open database
This is the code for my PHP file: (pretty simple because I'm just starting it)
<?php
$dbh = dba_open("./data/icewolf","w","db3") or die("Couldn't open database");
?>
The PHP file is located in C:\indigoperl\apache\htdocs and the MySQL directory for my databases is C:\mysql\data Am I looking for the wrong directory maybe when I call the dba_open function? I have no clue