Changeset 507145
- Timestamp:
- 02/19/2012 01:02:16 AM (14 years ago)
- File:
-
- 1 edited
-
token-manager/trunk/tokenadd.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
token-manager/trunk/tokenadd.php
r506738 r507145 97 97 </tokenmanager>"); 98 98 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 99 104 // 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')"); 102 107 103 108 // Get last insert id.
Note: See TracChangeset
for help on using the changeset viewer.