See if record exists - php / mysql


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. if(mysql_num_rows(mysql_query("SELECT userid FROM plus_signup WHERE userid = '$userid'"))){
  2. // Code inside if block if userid is already there
  3. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.