Skip to content

Commit

Permalink
Added links to statistics script, and modified to show results from s…
Browse files Browse the repository at this point in the history
…tatistics script

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@38 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Mar 16, 2003
1 parent fca933e commit b8bff85
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion admin/browse.php
Expand Up @@ -241,7 +241,14 @@
$tableheader .= " </TR>\n\n";

//NOW LETS SHOW THE DATA
$dtquery = "SELECT * FROM $surveytable ORDER BY id";
if ($sql)
{
$dtquery = "SELECT * FROM $surveytable WHERE ".stripcslashes($sql)." ORDER BY id";
}
else
{
$dtquery = "SELECT * FROM $surveytable ORDER BY id";
}
if ($limit && !$start) {$dtquery .= " DESC LIMIT $limit";}
if ($start && $limit) {$dtquery = "SELECT * FROM $surveytable WHERE id >= $start AND id <= $limit";}
$dtresult = mysql_query($dtquery);
Expand Down

0 comments on commit b8bff85

Please sign in to comment.