Hi there,
I need to convert some PHP code to a perl / global.
The current code is.
$res = mysql_query($query);
if (mysql_num_rows($res) == 1) {
$row = mysql_fetch_array($res);
$logouthash = md5($row[userid] . $row[salt] . '12345678');
}
I'm running a partially static site (Categories) and a partially dynamic site and would like to have the logout link placed on all pages.
Thanks!
I need to convert some PHP code to a perl / global.
The current code is.
Code:
$query = "select userid, salt from vb_user where username='" . mysql_escape_string($my->username) . "'"; $res = mysql_query($query);
if (mysql_num_rows($res) == 1) {
$row = mysql_fetch_array($res);
$logouthash = md5($row[userid] . $row[salt] . '12345678');
}
I'm running a partially static site (Categories) and a partially dynamic site and would like to have the logout link placed on all pages.
Thanks!