I have installed:
1- Windows XP
2- Wamp
3- Apache
4- MySQL
5- PHP
6- phpExpertEditor
When I run any php file in phpExpertEditor it works ok,
but when I try to connect php to mysql Im getting Error:
Fatal error: Call to undefined function mysql_connect() in C:\Program Files\PHP Expert Editor\php3A.tmp on line 9
the php code is:
$con = mysql_connect("localhost","peter","abc123");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
?>
I asked this question previously and someone said to check
I checked it but mysql wasnt there.
=================================
my second question is that i can not run any php file (which is on my HardDisk) by my InternetExplorer !!
I have to upload them to my host (which supports php) and then only i can run them.
Is there any problem in Installation of PHP?
2006-07-06
08:21:41
·
5 answers
·
asked by
QuestionAnswer
2