hi all
i use a php form which writes datas into a mysql db
Now i have a field called "sperrdatum" in the db and this field shoud be automatically updated with the actual date and time, if the radio button "x_gesperrt" on the php Form is set to True
below is the code
------------------------------------------------------------
If ($x_gesperrt) {
myNewDateTime = NOW ()
$tkey = "" . $key . "";
$updateSQL = "UPDATE `kundenbillig` SET sperrdatum ='" & myNewDateTime & "' WHERE `Kundennummer`=" . $tkey;
}
and this the code for the radio button
<td class="ewTableHeader">Sperren </td>
<td class="ewTableAltRow">
<input type="radio" name="x_gesperrt" size="30" value="JA">
Ja <input type="radio" name="x_gesperrt" value="Nein">Nein
-----------------------------------------------------------
after i submit the form datas the following error occurs
Parse error: parse error, unexpected '=' in \\192.168.0.12\billighostingkunden\kundenbilligsperren.php on line 201
----------------------------------------------------------
what's wrong?
and how can create this kind of function?
thanks in advance for your trouble
best regards
E.Altherr
i use a php form which writes datas into a mysql db
Now i have a field called "sperrdatum" in the db and this field shoud be automatically updated with the actual date and time, if the radio button "x_gesperrt" on the php Form is set to True
below is the code
------------------------------------------------------------
If ($x_gesperrt) {
myNewDateTime = NOW ()
$tkey = "" . $key . "";
$updateSQL = "UPDATE `kundenbillig` SET sperrdatum ='" & myNewDateTime & "' WHERE `Kundennummer`=" . $tkey;
}
and this the code for the radio button
<td class="ewTableHeader">Sperren </td>
<td class="ewTableAltRow">
<input type="radio" name="x_gesperrt" size="30" value="JA">
Ja <input type="radio" name="x_gesperrt" value="Nein">Nein
-----------------------------------------------------------
after i submit the form datas the following error occurs
Parse error: parse error, unexpected '=' in \\192.168.0.12\billighostingkunden\kundenbilligsperren.php on line 201
----------------------------------------------------------
what's wrong?
and how can create this kind of function?
thanks in advance for your trouble
best regards
E.Altherr