I found this solution to my problem,
Ok what you have to do is this, go to your PHP install directory and rename libmysql.dll to libmysql.old.
Next head to http://www.php.net/releases/ and grab 5.2.1 Windows Binary download, just open the zip. Once open copy libmysql.dll to your php directory.
That should do the trick, it just worked fine for me.Thought I would share.