:tired: I have been trying to get it to insert values into a table.
Ive intergrated it with vBulletin and its database, but it just does not insert the values.
I receive no error message.
PHP Code:
<?php
// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// ##################### DEFINE IMPORTANT CONSTANTS #######################
// change the line below to the actual filename without ".php" extention.
// the reason for using actual filename without extention as a value of this constant is to ensure uniqueness of the value throughout every PHP file of any given vBulletin installation.
define('THIS_SCRIPT', 'test');
// #################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();
// get special data templates from the datastore
$specialtemplates = array();
// pre-cache templates used by all actions
$globaltemplates = array(
// change the lines below to the list of actual templates used in the script
'quotegen',
);
// pre-cache templates used by specific actions
$actiontemplates = array();
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
$navbits = array();
// change the line below to contain whatever you want to show in the navbar (title of your custom page)
$navbits[$parent] = 'Test Page';
// change the line below to contain the name of the actual main output template used in your script
eval('print_output("' . fetch_template('quotegen') . '");');
$vbulletin->db->query_write("INSERT INTO quotegen VALUES ('hello')");
?>