PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
$connect = mysql_connect("localhost", "root", "");
if(!$connect){
die('<h3>im sorry, i could not connect to your databases: </h3><br />' .mysql_error());
}
and just so nobody will ask....the root has no password. Anybody have anyideas? The folder that this script is
in is about 3 subfolders into the root directory. Thanks for any help!
I don't get any errors on the page...all it does is print out my die() message and then prints the rest of the script.
I'm using wamp for my server/database tools and i'm pretty sure mysql is running. WAMP tells me it's running anyway.
I have the root password set to '' because there's nothing of real importance in my personal mysql database here at work, I only
use it for testing...any sensitive data is kept on our other servers.
do you think there's something wrong with my php configuration?
hey guys, got it fixed! thanks for you help...it actually turned out to be a pretty easy solution, got it fixed
last week and I don't remember exactly what it was, but something really small.