if ( $title && $bodytext) { $sql = "UPDATE testDB SET title=$title, bodytext=$bodytext, bodytext2=$bodytext2, href=$href, created=$created WHERE href='".$_GET['id']."'"; return mysql_query($sql);