taz321 Posted March 8, 2008 Share Posted March 8, 2008 Hi i was wondering if i can some help on somethings basic and hopefully very quick This is the scenario. 1)I have developed an help desk system, where an user would log a call by filling in an online blank form, this contains the date and time when the user had submitted the query. 2) An person dealing with the problem would open the call and add his own technical comments and then save it to the database (he updates the call basically) EASY so far - i hope. Now this is the code for updating, i just want to know how i would change the end two entites - (dateactioned and timeactioned) so that it would save the current date and time. $query = "update form set issuetitle = ".$issuetitle."', datesubmitted = ".$datesubmitted."', timesubmitted ='".$timesubmitted."', systemaffected ='".$systemaffected."', prioritylevel = '".$prioritylevel."', issuedetails ='".$issuedetails."', supportcomments ='".$supportcomments."', clientFname ='".$clientFname."', clientSurname ='".$clientSurname."', teamname ='".$teamname."', clientID ='".$clientID."', employeeID ='".$employeeID."', status ='".$status."', dateactioned ='".$dateactioned."', timeactioned ='".$timeactioned."' where formID =".$formID; I hope this is straightfoward. Thanks Link to comment https://forums.phpfreaks.com/topic/95113-system-date-and-time/ Share on other sites More sharing options...
BlueSkyIS Posted March 8, 2008 Share Posted March 8, 2008 dateactioned = NOW() Link to comment https://forums.phpfreaks.com/topic/95113-system-date-and-time/#findComment-487211 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.