Posted by:
ecolodge
(---.hsd1.mi.comcast.net)
so how would i change this to act properly?
<?php
$server = "localhost"; // server to connect to.
$database = "mysql"; // the name of the database.
$db_user = "webmaster"; // mysql username to access the database with.
$db_pass = "mypassword"; // mysql password to access the database with.
$table = "usertryout"; // the table that this script will set up and use.
?>
this is a script called config.php which the first of many scripts i am using to create eventually a login system for members.
here is a snippet of the other script that uses config.php
<?php
include ("config.php"
;
// connect to the mysql server
$link = mysql_connect($server, $db_user, $db_pass)
or die ("Could not connect to mysql because ".mysql_error());
Post Edited (08-26-06 20:05)