View Single Post
Old 10-15-2007, 04:48 PM   #2 (permalink)
Karl
The Reckoner
Advanced Programmer Top Contributor 
 
Karl's Avatar
 
Join Date: Sep 2007
Posts: 437
Thanks: 22
Karl is on a distinguished road
Default

The following ammendment would achieve this:

PHP Code:
$iDecisionMaker = isset($_POST['dm']) ? 0;
$iHeadOffice = isset($_POST['ho']) ? 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.
Karl is offline  
Reply With Quote