the all code goes like...
$result = mysql_query( "SELECT category_id,category_name FROM gallery_category" );
while( $row = mysql_fetch_array( $result ) )
{
$photo_category_list .=<<<__HTML_END
<option value="$row[0]|$row[1]">$row[1]</option>\n
__HTML_END;
}
mysql_free_result( $result );
this is a part of preupload.php and post the values to upload.php that goes like..
// Fetch the photo caption array
$_POST = array_map('addslashes', $_POST);
$explode = explode('|', $_POST['photo_category']);
$sql = "INSERT INTO table SET category_id = 'explode[0]', category_name = 'explode[1]'";
$enddate=date ("Y-m-d H:i:s",mktime(date("H"),date("i"),date("s"), date("m"),date("d")+$day_set,date("Y")));
$First=$_POST['First'];
$Last=$_POST['Last'];
$elm1=$_POST['elm1'];
$photo_caption = $_POST['photo_caption'];
.
.
.
$query = "INSERT INTO gallery_photos(
`photo_filename`,
`photo_caption`,
`photo_category`,`Gerne`,
`First`,
`Last`,
`elm1`,
`photo_category1`,
`enddate`)
VALUES(
'0',
'".addslashes($photo_caption[$counter])."',
'".addslashes($_POST['explode[0]'])."','".addslashes($_POST['explode[1]'])."',
'$First',
'$Last',
'$elm1',
'".addslashes($_POST['category1'])."',
'$enddate')" ;
including your lines.....
Sorry again that i dont understand but i m newbie and i m trying to learn