Hey...
coded like this
//code to update the pictures
if(!isset($error) and isset($_POST['update_pictures']))
{//start of if statment (delete, add descritption)
$data=$_POST['information'];
while(list($k,$v) = each($data))
{
$aray=$v.';';
list($description, $delete, $order, $id) = explode(";", $aray);
$string=("UPDATE pictures SET description='$description', order='$order' WHERE picture_id='$id' and username='$user'");
echo $string.'<br />';
}//end of while
}//end of if statment (delete, add descritpions
i get the following output.
UPDATE pictures SET description='', order='' WHERE picture_id='' and username='test'
UPDATE pictures SET description='1', order='' WHERE picture_id='' and username='test'
UPDATE pictures SET description='2', order='' WHERE picture_id='' and username='test'
UPDATE pictures SET description='', order='' WHERE picture_id='' and username='test'
UPDATE pictures SET description='1', order='' WHERE picture_id='' and username='test'
UPDATE pictures SET description='3', order='' WHERE picture_id='' and username='test'
UPDATE pictures SET description='', order='' WHERE picture_id='' and username='test'
UPDATE pictures SET description='1', order='' WHERE picture_id='' and username='test'
UPDATE pictures SET description='4', order='' WHERE picture_id='' and username='test'
UPDATE pictures SET description='', order='' WHERE picture_id='' and username='test'
UPDATE pictures SET description='1', order='' WHERE picture_id='' and username='test'
UPDATE pictures SET description='5', order='' WHERE picture_id='' and username='test'
UPDATE pictures SET description='me as of blah', order='' WHERE picture_id='' and username='test'
UPDATE pictures SET description='3', order='' WHERE picture_id='' and username='test'
UPDATE pictures SET description='1', order='' WHERE picture_id='' and username='test'
It appears that it's putting everything in the description field as u can see everything else but username is empty. so perhaps i need to add a foreach loop inside the php script under the while statment??