Wednesday, 28 August 2013

if elseif statement not working php

if elseif statement not working php

so i have these two stored procedures. the first one works properly, but
the second wont. it still executes the first one. i tried commenting out
the others except the second stored proc and it works fine. what am i
doing wrong here?
if($view='group'){
$sql = "CALL
sp_edit_biochem_group('$item_group_ID','$item_group_code','$item_group_desc','$item_group_qty','$uom','$location','$inv_by','$as_of_date')";
}
elseif ($view='breakdown'){
$sql = "CALL
sp_edit_biochem_breakdown('$status','$as_of_date','$serial_no','$item_breakdown_ID')";
}

No comments:

Post a Comment