| |
pdrn Junior Googler


Joined: 01 Oct 2005
2742.60 GC$
Items
|
Posted: Wed Oct 26, 2005 7:29 pm Post subject: 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.
Last edited by pdrn on Wed Oct 26, 2005 7:38 pm; edited 1 time in total |
|
| Back to top |
|
|
Lupine1647 The One with Wolves


Joined: 14 Nov 2004 Location: Kansas City, Missouri 22324.60 GC$
Items
|
|
| Back to top |
|
|
pdrn Junior Googler


Joined: 01 Oct 2005
2742.60 GC$
Items
|
Posted: Wed Oct 26, 2005 7:47 pm Post subject: |
|
|
|
| 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 |
|
|
Sponsored Links
|
Posted: 3 Dec 2008 2:40 pm Post subject: Advertisements |
|
|
|
|
|
|
| Back to top |
|
|
|
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
|
|
|
|
|