Jump to content

[SOLVED] date field not updating


jim.davidson

Recommended Posts

I'm using dreamweaver8, php and mySQL 4.1.21

 

update_date is a hidden field in my form:

 

        <input name="update_date" type="hidden" id="update_date" value="now()" />

 

 

My received_date field is not being updated, any ideas why?   

 

if ($_POST['received'] = 'y') {

      $updateSQL = sprintf("UPDATE orders SET received_by=%s, received=%s, received_date=%s WHERE order_id=%s",

          GetSQLValueString($currentUser, "int"),

                      GetSQLValueString($_POST['received'], "text"),

                      GetSQLValueString($_POST['update_date'], "date"),

                      GetSQLValueString($_POST['order_id'], "int"));

      mysql_select_db($database_imcrecycle, $imcrecycle);

      $Result1 = mysql_query($updateSQL, $imcrecycle) or die(mysql_error());

    }

 

Link to comment
https://forums.phpfreaks.com/topic/50539-solved-date-field-not-updating/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.