Insert Query not working
-
I am using Jquery Ajax Submit i have a action.php where all my code resides now the Jquery Posts the data but its not inserting it and either its giving an error, this is how the page looks..
require_once(‘/wp-load.php’);
require_once(‘/wp-config.php’);global $wpdb;
$wpdb->query(“INSERT INTO $wpdb->ticket (CompanyName, CustomerName) VALUES(‘test1′,’test 2’)”);I am new to wordpress, please can anyone help!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Insert Query not working’ is closed to new replies.