"; print "alert('You are not allowed to access this section');window.location='main.php?g=reports';"; print ""; } if (isset ( $_GET ['show'] )) { $r = $db->update_sql ( "update users set isshow=" . $_GET ['show'] . " where userid=" . $_GET ['id'] ); //$db->print_last_query(); print ""; exit (); } if (isset ( $_GET ['d'] )) { $r = $db->select ( "select userid from users where userid=" . $_GET ['d'] ); $row = $db->get_row ( $r, 'MYSQL_BOTH' ); $db->delete ( "delete from users where userid=" . $row ['0'] ); //$db->print_last_query(); print ""; exit (); } if (! empty ( $_POST ['deleted_pdts'] )) { $r = $db->select ( "select userid from users where userid IN(" . $_POST ['deleted_pdts'] . ")" ); while ( $row = $db->get_row ( $r, 'MYSQL_BOTH' ) ) { $db->delete ( "delete from users where userid=" . $row ['0'] ); } //$db->print_last_query(); print ""; exit (); } ?>
Latest Registered UsersClients
select ( "SELECT * FROM users INNER JOIN locations ON users.country=locations.locationid ") or die('error in innerjoin'); $numOfRows = $db->select_one ( "Select count(*) from users" ); //$db->print_last_query(); while ( $row = $db->get_row ( $res, 'MYSQL_BOTH' ) ) { $p = $row ['0']; ?>
Name Email Country Registration Date Actions