View Single Post
  #9 (permalink)  
Old 10-26-09, 12:18 AM
job0107's Avatar
job0107 job0107 is offline
Community Liaison
 
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
I found an error in your updateItem() function and corrected it.
The error was in the quoting of the $id varable.

PHP Code:

<?php
//----------Function for updating item on mysql db----------
function updateItem($accessories,$id)
{
 
mysql_query("UPDATE theitem SET item_accessories = '".$accessories."' WHERE item_id = '".$id."'");
 }
?>
__________________
Jerry Broughton
Reply With Quote
The Following User Says Thank You to job0107 For This Useful Post:
paligron (10-26-09)