Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- mysql_connect('localhost', 'root', '');
- mysql_select_db('9xemu');
- if(isset($_GET['l']))
- $list = $_GET['l'];
- else
- die('Please enter the list');
- $list = explode(',', $list);
- $found = array();
- foreach($list as $k=>$v)
- {
- $query = mysql_query("SELECT COUNT(Id) AS c FROM itemtemplate WHERE Id='$v'");
- $f = mysql_fetch_assoc($query);
- if((int)$f['c']===1)
- $found[]=$v;
- }
- echo 'Task Finished. '.count($found).' Items found. Ids Are: '.implode(',',$found);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement