![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Jul 2005
Posts: 6
Rep Power: 0
![]() |
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);
?> |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|