before print, let's print the sql command, i think .
And: if you put a value into a form, in hidden : newsid
After a post method, your value will apper with post.
if(isset($_POST['submit']))
{
// Set global variables to easier names
// and prevent sql injection and apostrophe to break the db.
$POST= array_map("mysql_escape_string", $POST);
$title = $_POST['title'];
$text1 = $_POST['text1'];
$text2 = $_POST['text2'];
$newsid= $_POST['newsid'];
//before update, lets check if it is an exists ID...
$command="UPDATE news SET title='$title', text1='$text1', text2='$text2' WHERE newsid='$newsid' ";
print $command; // if for just a debug
$result = mysql_query($command,$connect);
..............
Hi!
jjozsi
www.phpcode.hu