Hello my scenario is that on a specific date my user would be able to update data but only limit their update to only 3 times. Here is my code so far.
if(date('m','d' == '04','01')){
$sql="update tbl_enroll fields,fields,fields where student_id='".$_POST['student_id'] . "'";
$pow = mysql_query($sql) or die (mysql_error());
}
Any idea on how to limit his update ? Is there something i need to change in my db structure? would appreciate any help.
Add ‘counter’ to tbl_enroll. Something like this:
Then, your code should be something like this: