Direktori : /home/rizant5/public_html_old/development/ |
Current File : //home/rizant5/public_html_old/development/subscribe-ajax.php |
<?php require_once('config.php'); $data=$conn->prepare("select * from newsletter where slet_email='".$_POST['emailsubs']."'"); $data->execute();$nums=$data->rowcount(); if($nums==0){ $conn->exec("insert into newsletter(slet_email,slet_date) values ('".$_POST['emailsubs']."',now())"); } echo $nums; ?>