![]() ![]() |
|
![]() ![]() ![]() |
if ($update=='1') { if ($realis=='') $realis=' '; $connection=pg_Connect('localhost','','','','splan'); pg_Exec($connection,"update realisation set realis_tot='$realis_tot' where mer_id='$mer_id'"); pg_Close($connection); echo " $insert=$update=0; $connection=pg_Connect('localhost','','','','splan'); $result_id=pg_Exec($connection,"select realis_tot from realisation where mer_id='$mer_id'"); if (pg_NumRows($result_id)-1>=0){ $realis_tot=pg_Result($result_id,0,0);$update=1;} else $insert=1; pg_FreeResult($result_id); ?> |