News:

Please note these forums are mostly a testing ground for my SMF work and I don't really use them otherwise.

Main Menu

Paste-1259130782:v:use_geshi-1:v:type-php

Started by Guest, Nov 25, 2009, 06:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Guest

   if (isset($_REQUEST['lemma']))
      $_REQUEST['lemma'] = $lemma = (int) $_REQUEST['lemma'];
   if (isset($_REQUEST['mod']))
      $_REQUEST['mod'] = $mod = (int) $_REQUEST['mod'];

   $buffer = 10000;
   $id_cust = !empty($mod) ? $mod : (!empty($lemma) ? $lemma + $buffer : 0);

adfadsfadsf

   if (isset($_REQUEST['lemma']))
      $_REQUEST['lemma'] = $lemma = (int) $_REQUEST['lemma'];
   if (isset($_REQUEST['mod']))
      $_REQUEST['mod'] = $mod = (int) $_REQUEST['mod'];

   $buffer = 10000;
   $id_cust = !empty($mod) ? $mod : (!empty($lemma) ? $lemma + $buffer : 0);

query('SELECT * FROM customizations WHERE id_cust = ' . $id_cust);

adsf

$buffer = SELECT MAX(id_mod) as buffer
FROM mods;adsf

INSERT INTO customizations
SELECT id_theme + $buffer as id_cust, name, foo, bar, etc
FROM themes

INSERT INTO customizations
SELECT id_mod as id_cust, name, foo, bar, etc
FROM themes