= '4.3.0'){$string = mysql_real_escape_string($string);} else{$string = mysql_escape_string($string);} return $string; } $strip_user=ciscenje($user); $strip_pass=ciscenje($pass); $query = "SELECT * FROM `usersi` WHERE `username` = '$strip_user' AND `password` = '$strip_pass' "; $result = mysql_query($query); if (mysql_num_rows($result)==1){ $_SESSION["verified"]="ok"; $id=mysql_fetch_array($result); $ider = "$id[id]"; $ko = mysql_query("SELECT * FROM usersi WHERE id = '$ider' "); $data = mysql_fetch_array($ko); $_SESSION["name"]=$data['name']; $_SESSION["uid"]=$data['uid']; $_SESSION["email"]=$data['email']; $_SESSION["korisnicko"]=$data['username']; $_SESSION["sifra"]=$data['password']; }else{ $_SESSION["verified"]=""; $_SESSION["name"]=""; $_SESSION["uid"]=""; $_SESSION["email"]=""; $_SESSION["korisnicko"]=""; $_SESSION["sifra"]=""; } } ?>could not open dbAccess denied for user ''@'localhost' (using password: NO)