arccomp Posted February 11, 2013 Share Posted February 11, 2013 OK - I am really new to PHP but getting better and working on modifying it a little bit. I have added a date field to the table and need to load the current date/time to it. I have a set of lines of code that assign values to the same table. If I knew how to read the current lines of code, I may be able to write the one that I need. The existing examples of code in this section are: $ob_email->sender_from_name = $ob_utility->sqlQuote($login_user_name, $ob_email->db); $ob_email->file_name_list = $ob_utility->sqlQuote($file_name_list, $ob_email->db); $ob_email->file_size_list = $ob_utility->sqlQuote($file_size_list, $ob_email->db); The new field name in the table is $created_on and I need to just assign it the current date and time - the format is YYYY-MM-DD if it matters. Thanks for any help in getting this done. And if the replies could give me the sentence in words that explain what the code above means too, it would help me in the future to do this on my own. Quote Link to comment https://forums.phpfreaks.com/topic/274322-assign-a-variable-a-function-value/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.