» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > MySQL Forums

MySQL Forums Share Your Ideas and Tips about MYSQL. Ask questions about MYSQL. Table Design and Much More...

Reply
 
Thread Tools Display Modes
  #1  
Old 05-29-2006, 02:52 PM
JCH JCH is offline
Junior Member
 
Join Date: May 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
JCH is on a distinguished road
Default Getting MySQL & PHP to communicate

I am really stumped!

I have been trying with no success for a week now to get PHP and MySQL to work together. My installation with these two are with these latest versions: PHP 5.1.4, MySQL 5.0.21.

After the installations, I ran the following db.php to test out my installations . . .

<?php
$conn = mysql_connect("localhost", "oscommerce", "password");
$result = mysql_list_dbs($conn);

while($db_data = mysql_fetch_row($result))
{
echo "<b> $db_data[0]</b><br>";
}
?>


. . . I get the message:

"Fatal error: Call to undefined function mysql_connect() in C:\Internet\WebServer\Apache2.2\htdocs\db.php on line 2"

which basically means that PHP is not finding the necessary libraries in order to work with MySQL. I read from all the forum postings that PHP5 (the late -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
Reply


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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
php and mysql? Jasper Web Hosting Industry 1 02-24-2007 08:45 AM
mysql can't run on php? Aldo MySQL Forums 1 01-06-2007 07:55 AM
Sitcky CMS problem...PHP & MySQL melika PHP Programming and Tips 1 08-25-2006 10:38 AM
Ask PHP about mySQL existing connection? climax PHP Programming and Tips 2 08-17-2006 02:53 PM
trying to connect to mysql using php. branson MySQL Forums 1 08-13-2006 09:57 AM


All times are GMT. The time now is 10:09 AM.