bootstrap-year-calendar icon indicating copy to clipboard operation
bootstrap-year-calendar copied to clipboard

send datasources to database

Open josefequalizer opened this issue 5 years ago • 0 comments

hi, i make this code inside script to save datasource event in database but nothing happend no values in database :

$.ajax({ url:"insert.php", type:"POST", data:{id:event.id, name:event.name, startDate:event.startDate, endDate:event.endDate}, success:function(){ alert("Added Successfully"); } }) file insert.php:

prepare($query); $statement->execute( array(':id' => $_POST['event.id'], ':name' => $_POST['event.name'], ':startDate' => $_POST['event.startDate'],':endDate' => $_POST['event.endDate'])); ?>

josefequalizer avatar Nov 06 '18 13:11 josefequalizer