hi
just looking for some help with some syntax, i've been trying to make a webpage interface for my database and i have been using forms to process upload and display etc....
i'm currently stuck trying to overwrite an entry with this code:
<?php
$res= mysql_query("UPDATE test SET (file_name, file_id, name, common, family, alphabetical, description, height, width, base, habit, flow, submitter) VALUES ('$file_name', '$file_id', '$name', '$common', '$family', '$alphabetical', '$description', '$height', '$width', '$base', '$habit', '$flow', '$submitter') WHERE file_id = '$file_id'")or die (mysql_error());
?>
ok heres an update which clicks through ok and returns no errors but does not update any of the fields when submitted:
<?php
$res= mysql_query("UPDATE test SET file_name='$file_name', file_id='$file_id', name='$name', common='$common', family='$family', alphabetical='$alphabetical', description='$description', height='$height', width='$width', base='$base', habit='$habit', flow='$flow', submitter='$submitter' WHERE file_id='$file_id'")or die (mysql_error());
?>
is this enough info?
regards sean