Strict but sane Error reporting system
[mirrors/Kyberia-bloodline.git] / wwwroot / _ajax / get_username_by_id.php
1 <?php
2 error_reporting(E_ALL | E_STRICT);
3 require('../config/config.inc');
4 require(INCLUDE_DIR.'database.inc');
5 $db=new CLASS_DATABASE();
6 $name = addslashes($_GET['name']);
7 $q="select users.user_id from users where users.login='$name' limit 1";
8 $set=$db->query($q);
9 $set->next();
10 $id=$set->getString('user_id');
11 echo $id;
12 ?>
This page took 0.244466 seconds and 4 git commands to generate.