Hi There
I do have a form and a little sql query to update the row before do something else.
Problem is in the code below works when I enter the date like that= 01-02-2001 but I need to do it dynamic I know getdate() but it does not work..
include "inc/inc.php";
echo "<pre>";
if($_POST["submitButton"] == "Submit"){
$mn=$_POST["textMembership"];
$date = getdate();
//$today = mktime(0, 0, 0, date("m") , date("d"), date("Y"));
//$next2year = mktime(0, 0, 0, date("m"), date("d"), date("Y")+2);
$sql= care_query("
UPDATE
Contact_positions
SET
finished = 'getdate()',
started = 'getdate()'
WHERE
contact_number ='$mn'
AND
address_number= '4'");
mssql_close($con);
Do you have any idea?
Thanks