View Single Post
Old Jul 8th, 2005, 3:40 PM   #1
HelloWorldProgram
Newbie
 
Join Date: Jul 2005
Posts: 6
Rep Power: 0 HelloWorldProgram is on a distinguished road
another simple question about PHP and mySQL

I am trying to check for access to my database(mysql), therefore I type the following code, and I save it as a php file and I try to run it from my local server in Apache, but an error displays "Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Group\Apache2\htdocs\helloworld.php on line 3. My OS is XP
".

<?php
$conn=mysql_connect("localhost","name","password");
echo $conn;
mysql_close($conn);
?>
HelloWorldProgram is offline   Reply With Quote