introduction screenshots faq forum blog modules components download
Please use the search function and/or read the FAQ first.

EasyPHP login.



Posted by: Eric Sepich
October 20, 2010 04:37AM
<?php // login.php
$db_hostname = "localhost";
$db_database = "dsg.bars";
$db_username = "root";
$db_password = "";
?>
<?php
require_once 'login.php';
$db_server = mysql_connect($db_hostname, $db_username, $db_password);

if (!$db_server) die("Unable to connect to MySQL: " . mysql_error());
?>
My login for some reason is not working. I think I may have a hernia. Can someone tell me what may be wrong. My examples from my book are working but I can not connect to my database.
Options: ReplyQuote
Posted by: Eric Sepich
October 20, 2010 07:12AM
I specified host as '127.0.0.1' and problem solved.
Options: ReplyQuote


Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.