I have a HTML form which is checked by a PHP page. Here is the code.
<HTML>
<HEAD>
<TITLE></TITLE>
<HEAD>
<BODY>
<?php
require ("common.inc"
;
mysql_connect($dbserver, $dblogin, $dbpassword);
$result = mysql_query("csmgroup","SELECT * FROM userinfo WHERE user='$username' AND password='$password'"
;
if ($submit = mysql_fetch_array($result))
print("<meta http-equiv='refresh' content='0' URL='mediakit.htm'>"
;
else
print("<meta http-equiv='refresh' content='0' URL='login.htm'>"
;
?>
</BODY>
</HTML>
where common.inc includes the variable names $dbserver, $dblogin, and $dbpassword.
I keep getting the following errors:
Warning: MySQL Connection Failed: Access denied for user: 'csm@csmgroup.net' (Using password: YES) in /usr/local/ on line 9
Warning: Supplied argument is not a valid MySQL-Link resource in /usr/local/ on line 10
Warning: Supplied argument is not a valid MySQL result resource in /usr/local/ on line 12
Any Ideas or comments. Thanks in advance.
<HTML>
<HEAD>
<TITLE></TITLE>
<HEAD>
<BODY>
<?php
require ("common.inc"
mysql_connect($dbserver, $dblogin, $dbpassword);
$result = mysql_query("csmgroup","SELECT * FROM userinfo WHERE user='$username' AND password='$password'"
if ($submit = mysql_fetch_array($result))
print("<meta http-equiv='refresh' content='0' URL='mediakit.htm'>"
else
print("<meta http-equiv='refresh' content='0' URL='login.htm'>"
?>
</BODY>
</HTML>
where common.inc includes the variable names $dbserver, $dblogin, and $dbpassword.
I keep getting the following errors:
Warning: MySQL Connection Failed: Access denied for user: 'csm@csmgroup.net' (Using password: YES) in /usr/local/ on line 9
Warning: Supplied argument is not a valid MySQL-Link resource in /usr/local/ on line 10
Warning: Supplied argument is not a valid MySQL result resource in /usr/local/ on line 12
Any Ideas or comments. Thanks in advance.