Skip to content
Snippets Groups Projects
Commit 8036f767 authored by root's avatar root
Browse files

uprava

parent 94fe457e
No related branches found
No related tags found
No related merge requests found
...@@ -133,6 +133,7 @@ if( IsSet($_POST["btnSubmit"])) { ...@@ -133,6 +133,7 @@ if( IsSet($_POST["btnSubmit"])) {
<td> <td>
<? <?
$res = NULL;
if( IsSet($_POST["btnSubmit"]) and !empty($where)) { if( IsSet($_POST["btnSubmit"]) and !empty($where)) {
$q = "SELECT * FROM events WHERE $where ORDER BY detected DESC LIMIT ".$_POST['limit']; $q = "SELECT * FROM events WHERE $where ORDER BY detected DESC LIMIT ".$_POST['limit'];
...@@ -162,7 +163,7 @@ if( IsSet($_POST["btnSubmit"]) and !empty($where)) { ...@@ -162,7 +163,7 @@ if( IsSet($_POST["btnSubmit"]) and !empty($where)) {
#TODO: strip vsechny superznaky #TODO: strip vsechny superznaky
if( $res != FALSE) { if( $res != FALSE && $res != NULL) {
print("<pre>"); print("<pre>");
while ($tmp = mysql_fetch_assoc($res)) { while ($tmp = mysql_fetch_assoc($res)) {
#var_dump($tmp); #var_dump($tmp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment