Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include('db.php');
- $action = $_GET['action'];
- $id = $con->real_escape_string(md5($_GET['id']));
- if(!$action)
- {
- echo "Please enter an action.";
- }
- else
- {
- if($action == "listid")
- {
- $query = $con->query("SELECT * FROM id WHERE macid = '$id'");
- $cnt = $query->num_rows;
- if($cnt > 0)
- {
- echo "1";
- }
- else
- {
- echo "0";
- }
- }
- else
- {
- echo "Invalid action.";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement