Jump to content
php.lv forumi

mysql_Query(UPADTE...


justus

Recommended Posts

mysql_query("UPDATE news SET titlle = '$_POST[titlle]' , text = '$_POST[msg]' , fulltext='$_POST[fullmsg]' , coments = '$_POST[coments]' WHERE id = '$_POST[id]'");

 

1)tas no post itkaa vajadzeetu post mainigos salikt pedinjas '' tjip $_POST['msg'] .utt

un

2) masiivus tu taapat kaa mainigos nevari izvadiit. vai nu ieliec

mysql_query("UPDATE news SET titlle = '{$_POST['titlle']}' , text = '{$_POST['msg']}' , fulltext='{$_POST['fullmsg']}' , coments = '{$_POST['coments']}' WHERE id = '{$_POST['id']}'");

vai

mysql_query("UPDATE news SET titlle = '".$_POST['titlle']."' , text = '".$_POST['msg']."' , fulltext='".$_POST['fullmsg']."' , coments = '".$_POST['coments']."' WHERE id = '".$_POST['id']."'");

 

:ph34r:

Link to comment
Share on other sites

×
×
  • Create New...