Google Community
Latest Forums Rules Resources
Custom Search

Go Back   Google Community > Webmaster Forums > Web Design, Coding & Programming Forum

GoogleCommunity Sponsor

Reply
 
LinkBack Thread Tools Display Modes
Old 10-26-2005, 07:29 PM   #1 (permalink)
Junior Googler
 
Join Date: Oct 2005
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
pdrn
Send a message via MSN to pdrn Send a message via Yahoo to pdrn
i need help configuring mysql to apache 2

hi
i use window2000 on my machine.
i have apache 2 install and working properly.
i have php5.0.5 and it's also working properly.
i have mysql4.1.15 and it is running as service on services. where i can creat database tables and add some row no it. thats y i think it's also working properly.
i have created one fiel name connect.php with this code
Quote:
<?php

$db = mysql_connect("localhost", "username", "password") or die("Could not connect.");
if(!$db)
die("no db");
if(!mysql_select_db("databasename",$db))
die("No database selected.");
if(!get_magic_quotes_gpc())
{
$_GET = array_map('mysql_real_escape_string', $_GET);
$_POST = array_map('mysql_real_escape_string', $_POST);
$_COOKIE = array_map('mysql_real_escape_string', $_COOKIE);
}
else
{
$_GET = array_map('stripslashes', $_GET);
$_POST = array_map('stripslashes', $_POST);
$_COOKIE = array_map('stripslashes', $_COOKIE);
$_GET = array_map('mysql_real_escape_string', $_GET);
$_POST = array_map('mysql_real_escape_string', $_POST);
$_COOKIE = array_map('mysql_real_escape_string', $_COOKIE);
}
?>
but it generate this error message
Quote:
Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Group\Apache2\htdocs\chip\connect.php on line 3
how can i solve this problem.
please help me.
pdrn is offline   Reply With Quote
 
Sponsored Links
Old 10-26-2005, 07:32 PM   #2 (permalink)
Elite Googler
 
Join Date: Nov 2004
Location: Kansas City, Missouri
Posts: 1,065
Thanks: 0
Thanked 1 Time in 1 Post
Lupine1647
You need to install the mysql extension for PHP, hence the call to undefined function error. There should be more information about this in the Install file.
Lupine1647 is offline   Reply With Quote
Old 10-26-2005, 07:47 PM   #3 (permalink)
Junior Googler
 
Join Date: Oct 2005
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
pdrn
Send a message via MSN to pdrn Send a message via Yahoo to pdrn
Quote:
Originally Posted by Lupine1647
You need to install the mysql extension for PHP, hence the call to undefined function error. There should be more information about this in the Install file.
Thanx for your fast response
they suggest me to move libmysql.dll file to system folder i already copy this to system folder it still not working. i see all information regarding installetion in php.net but i can't find any solution. i think i should make some change on php.ini file or httpd of apache file but i don't know what should i change. or u can suggest me a local server software which support php and mysql.
my advance thanx to all who response on my problem.
pdrn is offline   Reply With Quote
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Similar Threads
Thread Thread Starter Forum Replies Last Post
Authentication in Apache Webserver in Windows diwakar Web Hosting Forum 0 07-16-2006 11:43 PM
integrating tomcat 5.0.28 with apache web server 2.2 susmeet Web Design, Coding & Programming Forum 0 06-15-2006 11:12 PM
A CONTENT MANGER for HTML that's not needing APACHE & My Nightavenger Web Design, Coding & Programming Forum 4 11-02-2005 03:31 AM
Need help with php/mysql for accounts xxzzangxx Web Design, Coding & Programming Forum 1 07-24-2005 07:48 PM
A CONTENT MANGER for HTML that's not needing APACHE & My Nightavenger Web Design, Coding & Programming Forum 4 01-01-1970 09:25 AM


All times are GMT -8. The time now is 12:01 AM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004–2007 Google Community