Welcome Guest, Not a member yet? Register   Sign In
Showing blank page when database is loaded

Hi, i read another thread having the same problem but its not a solution for mine. I have running

Linux Debian Lenny 64Bit
Apache2 mod_fcgi, mod_rewrite

I uploaded a fresh installation of CI and all was ok. Then i set up the autoload.php with 'database' and filled up the !100% correct! connection settings.

If i remove the 'database' autolaod it works.

Now i created a file in same dir as /system/ and wrote into it:

$conn = mysql_connect('localhost','XXX','XXX');
if (!$conn) {
  die('Could not connect: ' . mysql_error());
echo 'Connected successfully';

When i call this file i get an error:

Fatal error: Call to undefined function mysql_connect() in /var/www/virtual/md5hood.com/htdocs/a.php on line 2

I dont know what to do, i installed mysql correctly (i guess). I think its a problem that i am running PHP CGI becouse of the Hostingpanel (using CGI).

Please help if you can.

which mysql version are you using?

Theme © iAndrew 2016 - Forum software by © MyBB