Hello,
I warned the list that I may have questions! ;-)
...building a simple cookie-based log-in system, and have
narrowed an error to this below: (sorry for email line breaks, if any)
---Start---
if ($_post['f_action']=='login') {
// connect to database (custom function)
$r = dbconnect();
// success?
if ($r['a_success']) {
$query = "SELECT u_id FROM cms_users WHERE u_name =
$_post['f_user'] AND u_pass = $_post['f_pass']";
if ($r = @mysql_query($query))
{
// test
print "<!-- userID: $r -->";
}
mysql_close();
} else {
// Not connected to db
$t_mssg = mysql_error();
}
}
---End---
No info is given in PHP error reporting because it
returns no source to the page. Can you see where this n00b went wrong?
Thanks!
Donovan
--
D Brooke
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php