Jump to content

Assign a variable a function value


arccomp

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/274322-assign-a-variable-a-function-value/
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.