Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Need help converting some PHP code

Quote Reply
Need help converting some PHP code
Hi there,

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!
Subject Author Views Date
Thread Need help converting some PHP code shrirch 4091 Sep 3, 2008, 1:50 AM
Thread Re: [shrirch] Need help converting some PHP code
Andy 3968 Sep 3, 2008, 2:02 AM
Thread Re: [Andy] Need help converting some PHP code
shrirch 3945 Sep 3, 2008, 2:21 AM
Thread Re: [shrirch] Need help converting some PHP code
Andy 3991 Sep 3, 2008, 2:30 AM
Thread Re: [Andy] Need help converting some PHP code
shrirch 3962 Sep 3, 2008, 2:32 AM
Thread Re: [shrirch] Need help converting some PHP code
shrirch 3958 Sep 3, 2008, 2:34 AM
Thread Re: [shrirch] Need help converting some PHP code
Andy 3945 Sep 3, 2008, 2:46 AM
Post Re: [Andy] Need help converting some PHP code
shrirch 3923 Sep 3, 2008, 2:47 AM