10-15-2007, 04:48 PM
|
#2 (permalink)
|
|
The Reckoner
Join Date: Sep 2007
Posts: 437
Thanks: 22
|
The following ammendment would achieve this:
PHP Code:
$iDecisionMaker = isset($_POST['dm']) ? 1 : 0; $iHeadOffice = isset($_POST['ho']) ? 1 : 0; $sql=("insert into table (ho,dm)values($iHeadOffice,$iDecisionMaker)"
__________________
Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
|
|
|
|