Ok so as you may now from PT.1, I couldn't get MYSQL to work on my local computer but I got it to work on a hosted web site that I was using. Well I figured out why it wasn't working on my home computer. Turns out I had two copys installed and the .ini file I was editing was the wrong one! Well now that I fixed that and it works now I run my program on my home computer and I get this:
Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\test.php on line 11
Which would lead me to believe I don't have MySQL installed properly. I have the .dll file in my Apache settings. Any ideas guys. Thanks again for all your help in advance, I promise once I get up and running I will be alot better at all this!
Take a look at apache's error.log file. Anything related to mysql in there?
Did you do anything to ensure windows can find libmysql.dll? (if you didn't just say so)
Thanks for your help. After looking at the apache error log I relized it wasn't finding php_mysql.dll. So I put a copy in my windows/system folder and now it works! Thanks for all your help. Let the coding begin!
You shouldn't copy the php extension dll to your system directory.
There's a parameter extension_dir in your php.ini. It should point to the directory where all the extension dll are located.
libmysql.dll is another story.