Jump to content

need serious help


poofacer

Recommended Posts

Ok i installed Apache 2.0, PHP 5.2.0 and MySQL 5.0

ok for functions in PHP to interact with MySQL like the mysql_connect(); function, what needs to be done to have this functionality? do i have to edit an .ini file or something?

because here is what happens:

<?php

require($_SERVER['DOCUMENT_ROOT'] . '/config/ac_config.php');
mysql_connect($db_host, $db_user, $db_password) or die("poo");
echo "$db_host";

echo "connection made";

?>

I run this code. the require works. but when it gets to mysql_connect blanks out. Doesn't do anything. It wont get to the echo. However, if i place the echo before the mysql_connect(); it will echo, but will blank out at mysql_connect.

What is wrong and why wont it execute the function? it wont even give me an error. just blank page.


thanks.
Link to comment
https://forums.phpfreaks.com/topic/32667-need-serious-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.