[ CiM0beTa @ 28.02.2013. 12:36 ] @
Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 7 in D:\xampp\htdocs\www\pro2\core\functions\users.php on line 38 function user_id_from_username($username) { return mysql_result(mysql_query("SELECT `user_id` FROM `users` WHERE `username` = '$username'"), 0, 'user_id'); } Kada unesem pogresan username dobijem warning poruku, sto i razumem, ali ne znam kako drugacije da resim ovo. Treba mi za logovanje. |