BleepingComputer.com: Need help on connecting my localhost database

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Need help on connecting my localhost database

#1 User is offline   qhourmerd 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 1
  • Joined: 21-February 09

Posted 21 February 2009 - 09:52 AM

im using xampp for my local server.

im making a webpage so i can view my database.

this is my PHP codes.

<?php
$con = mysql_connect('localhost','root','');
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
?>

when i try to run my web page. it wont display anything, nor it even displays that Ive connected to my server or not.

it only diplays a blank page.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users