mysql - How can I get the yesterday's data and show it to my form today? -
the idea have 'present' form textbox 1 user can input data.
now, want show yesterday's data(readonly) comparing result yesterday vs result today.
ex: attendance: (yesterday- readonly textbox)
andy shrob paula guinto mylene miles attendance (today)
paula guinto mylene miles how can yesterday , show can see who's present yesterday , who's present today? i'm coding php , javascript
i thinking of this:
mysql_query("select prestoday, presyesterday attendance ???) all ideas welcome. ;) whether php code or javascript or mysql query
table structure: mysql_select_db("csdcon", $con);
$sql="insert attendance (prestoday, presyesterday, userdateinp, yesterdate) values ('$_post[prestoday]','$_post[presyesterday]','$_post[userdateinp]','$_post[yesterdate]')";
mysql_query("select prestoday, presyesterday attendance date(`datetimefield`) = date(date_sub(now(), interval 1 day))
Comments
Post a Comment