Google Community Chat
 
i need help configuring mysql to apache 2

You're visiting Google Community as a guest.
In order to post, you'll need to register and log in.

(If you were registered and logged in, these advertisements wouldn't be here)
Post new topic   Reply to topic    Google Community Forum Index // Web Design, Coding & Programming Forum
   
Author Message
pdrn
Junior Googler
Junior Googler


Joined: 01 Oct 2005

2742.60 GC$

Items

PostPosted: Wed Oct 26, 2005 7:29 pm    Post subject: i need help configuring mysql to apache 2 Reply with quote
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.
Quote:


Last edited by pdrn on Wed Oct 26, 2005 7:38 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Lupine1647
The One with Wolves
Elite Googler


Joined: 14 Nov 2004
Location: Kansas City, Missouri
22324.60 GC$

Items

PostPosted: Wed Oct 26, 2005 7:32 pm    Post subject: Reply with quote
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.
_________________
Info Sharkz
R^J - The Life Behind the Insane Wolf Leader!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
pdrn
Junior Googler
Junior Googler


Joined: 01 Oct 2005

2742.60 GC$

Items

PostPosted: Wed Oct 26, 2005 7:47 pm    Post subject: Reply with quote
Lupine1647 wrote:
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.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Sponsored Links
Posted: 3 Dec 2008 2:40 pm    Post subject: Advertisements
Back to top
Post new topic   Reply to topic    Google Community Forum Index // Web Design, Coding & Programming Forum All times are GMT - 8 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Host your free forums with Invision Plus.net forum web hosting with your own subdomain.

alexisBlue v1.2 // Theme Created By: Andrew Charron // Icons in Part By: Travis Carden

© 2005-2006 Google Community

Powered by phpBB

Privacy Policy | Contact Us

Powered by Google Search blog

This website is not affiliated in any way with Google, Inc.
Google™ is a registered trademark of Google, Inc.