exec_sql('insert into document_state(s_value,s_status) values ($1,$2)',array($_POST['s_value'],'C')); } else { $cn->exec_sql('insert into document_state(s_value) values ($1)',array($_POST['s_value'])); } } } $a_stat=$cn->get_array("select s_value,s_status from document_state order by 1"); ?>