Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Need help on connecting my localhost database


  • Please log in to reply
No replies to this topic

#1 qhourmerd

qhourmerd

  • Members
  • 1 posts
  • OFFLINE
  •  
  • Local time:04:13 AM

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.

BC AdBot (Login to Remove)

 





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users