Support for the subproject attribute
authorJoey Schulze <joey@infodrom.org>
Sat, 17 Jul 2004 12:35:11 +0000 (12:35 +0000)
committerJoey Schulze <joey@infodrom.org>
Sat, 17 Jul 2004 12:35:11 +0000 (12:35 +0000)
src/LinuxTag/2005/projects/update.wml

index 620a0aa..1e18876 100644 (file)
       }
 
     } elseif ($oid == 0) {
-      $query = sprintf ("INSERT INTO project (name,url,boothnr,boothsize,computer,comment) VALUES ('%s','%s','%s',%d,%d,'%s')",
+      $query = sprintf ("INSERT INTO project (name,subproject,url,boothnr,boothsize,computer,comment) "
+                       ."VALUES ('%s','%s','%s','%s',%d,%d,'%s')",
                        addslashes ($name),
+                       addslashes ($subproject),
                        addslashes ($url),
                        addslashes ($boothnr),
                        $boothsize, $computer,
 
     # Now we know enough and can continue
 
-      $query = sprintf ("UPDATE project SET name='%s',url='%s',boothnr='%s',"
+      $query = sprintf ("UPDATE project SET name='%s',subproject='%s',url='%s',boothnr='%s',"
                       ."boothsize=%d,computer=%d,comment='%s' WHERE oid = %d",
                       addslashes ($name),
+                      addslashes ($subproject),
                       addslashes ($url),
                       addslashes ($boothnr),
                       $boothsize, $computer,