$rez = mysql_query("INSERT INTO articles SET title='text', text='text' ",$db); if(isset(!$rez)>0) {echo"ок";;}