Plugin Directory

Changeset 507145


Ignore:
Timestamp:
02/19/2012 01:02:16 AM (14 years ago)
Author:
Codevendor
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • token-manager/trunk/tokenadd.php

    r506738 r507145  
    9797</tokenmanager>");
    9898
     99          // Get process order id
     100          $processorder = 0;
     101          $processorder = $wpdb->get_var("SELECT processorder FROM $tablename order by processorder DESC LIMIT 1");
     102          $processorder++;
     103
    99104          // Insert into database
    100           $wpdb->query("INSERT INTO $tablename (id, datecreated, lastupdated, siteid, blogid, tokenname, htmlvalue, phpvalue, cssvalue, jsvalue, description, authorid, typeid, active, version, history)
    101                         VALUES (null, UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), '$siteid', '$blogid', '$tokenname', '$htmlvalue', '$phpvalue', '$cssvalue', '$jsvalue', '$description', '$authorid', '$tokentype', '1', '1', '$history')");
     105          $wpdb->query("INSERT INTO $tablename (id, datecreated, lastupdated, siteid, blogid, tokenname, htmlvalue, phpvalue, cssvalue, jsvalue, description, authorid, typeid, active, version, processorder, history)
     106                        VALUES (null, UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), '$siteid', '$blogid', '$tokenname', '$htmlvalue', '$phpvalue', '$cssvalue', '$jsvalue', '$description', '$authorid', '$tokentype', '1', '1', '$processorder', '$history')");
    102107
    103108          // Get last insert id.
Note: See TracChangeset for help on using the changeset viewer.