Heyho guys.
I'm creating a plugin for newsletter. The users can subscribe to the newsletter in the sidebar, where an AJAX sends the email to a php-script in the plugin-folder. The Php-file shall insert this email into a database which is created in the admin-menu.
Im using this command:
$query = $wpdb->query("INSERT INTO 'newsletter_mails' (
<code>id</code> ,
<code>mail</code> ,
<code>status</code>
)
VALUES (
NULL , '".$_GET["mail"]."', 'active'
);");
(The code is correct, but the backticks make it a little different.. :P)
And i get this error:
Unknown MySQL server host 'DB_HOST' (11001)
Please help me so i can go on with my plugin :>
Ciao!