Current time: 10-02-2024, 08:56 AM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED]White screen instead of login page? Problem with making database connection?
Author Message
pgentoo Offline
Member
*****
Dev Team

Posts: 326
Joined: Mar 2007
Reputation: 0
Post: #2
RE: White screen instead of login page? Problem with making database connection?
I've created a test php script, which is able to connect to my db, use ispcp database, and query a table... So my php/mysql installations are working fine...

Code:
<?php
       mysql_connect("localhost", "root", "notmyrealpassword") or die("unable to connect to db");
       mysql_select_db("ispcp") or die("Unable to select ispcp database");

      $result = mysql_query("select * from admin");
      $array = mysql_fetch_array($result);
      print_r($array);
?>

this executes and shows me the contents of the admin table...

Any ideas?
07-19-2008 10:37 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: White screen instead of login page? Problem with making database connection? - pgentoo - 07-19-2008 10:37 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)