Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
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
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:29 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC