I am having trouble getting this to work, I need to update a table in my database, changing one of the fields for all records that fall in between two dates and have a certain user name.
The date values are being passed to a script from a form.
What I have:
mysql_query("
UPDATE data
SET status='Submitted'
WHERE (user_name = '$current_user->user_login')
AND labor_date >= '$_POST[start]'
AND labor_date <= '$_POST[end]'")
Any ideas what I am doing wrong? Thanks for any help!
L