Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $CarData = "select name,telp,mobile,email from data_subscribe
- where name='".trim(addslashes($_POST[Nama]))."' or
- telp='".trim(addslashes($_POST[Telp]))."' or
- mobile='".trim(addslashes($_POST[Hp]))."' or
- email='".trim(addslashes($_POST[email]))."'
- ";
- $result=mysql_query($CarData);
- $count=mysql_num_rows($result);
- if($count==1){
- //Lakukan Alert Data Sudah Ada
- }else{
- //Lakukan Eksekusi Insert Data
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement