View Single Post
  #10 (permalink)  
Old 03-05-07, 05:44 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
try this:
PHP Code:

foreach($_POST['field'] as $k => $field){
  
$value23 htmlspecialchars($field);
  
$currentvalue htmlspecialchars($_POST['hfield'][$k]);
  
mysql_query("UPDATE menu set name='" $value123 "' WHERE id= '" $currentvalue ."'") or die(mysql_error());

i'm not sure if it's gonna work though. just give it a try

UnrealEd
Reply With Quote