Hey All,
Im currently using the script found at http://www.phpbuilder.com/snippet/download.php?type=snippet&id=368 to view a list of users in a database.
Im using sessions in the url, so the url looks like so useradmin.php?PHPSESSID=f70bea770934491d39a348d55684aff2
When i refresh the page with the prev next code inserted, i get the following errors:
Notice: Use of undefined constant search - assumed 'search' in /admin/useradmin.php on line 54
Lines 53 and 54 are populated by the following:
if(!isset($thisOffset) || $thisOffset < 0) $thisOffset=0;
if ($action==search) $thisOffset = $thisOffset - 1;
I also get another error:
Notice: Undefined variable: action in /admin/useradmin.php on line 54
and once again another error
Notice: Undefined variable: lineIndex in /admin/useradmin.php on line 144
Lines 140 - 144 are populated by the following:
$query = mysql_query($sql, $con);
while ($result=mysql_fetch_array($query)) {
// Increment the line index by 1
$lineIndex++;
I have no idea where im going wrong, am i ment to pass anything in the URL along with the session id?
Someone please shed some light on this for me 🙂
Cheers