From 044fba02566cd1854e8a1721a74552073a6ad2e3 Mon Sep 17 00:00:00 2001 From: z0rglub Date: Sat, 30 Aug 2003 15:54:37 +0000 Subject: Multi categories for the same picture git-svn-id: http://piwigo.org/svn/trunk@61 68402e56-0260-453c-a942-63ccdbb3a9ee --- upload.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'upload.php') diff --git a/upload.php b/upload.php index abf3ce1a8..44f1d357f 100644 --- a/upload.php +++ b/upload.php @@ -205,8 +205,9 @@ if ( isset( $_POST['submit'] ) and !isset( $_GET['waiting_id'] ) ) if ( sizeof( $error ) == 0 ) { $query = 'insert into '.PREFIX_TABLE.'waiting'; - $query.= ' (cat_id,file,username,mail_address,date,infos) values'; - $query.= " (".$page['cat'].",'".$_FILES['picture']['name']."'"; + $query.= ' (storage_category_id,file,username,mail_address,date,infos)'; + $query.= ' values '; + $query.= '('.$page['cat'].",'".$_FILES['picture']['name']."'"; $query.= ",'".htmlspecialchars( $_POST['username'], ENT_QUOTES)."'"; $query.= ",'".$_POST['mail_address']."',".time().",'".$xml_infos."')"; $query.= ';'; -- cgit v1.2.3