Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function user_check()
- {
- global $wpdb;
- $uid = $_POST['gelen_deger'];
- $query = "select * from `" . $wpdb->prefix . "users` where `ID`='$uid';";
- $voted = $wpdb->get_results($query, ARRAY_N);
- if (count($voted) > 0)
- {
- //Eğer sistemde kullanıcı varsa kodlar buraya
- }
- else
- {
- // Sistemde kullanıcı yoksa hata kodu vermek için burası kullanılabilir.
- exit();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement