Help with SQL query inside insert_php
-
Hello, hope you can help me with this. I’m trying to create a page in my wordpress site, which will store information in a separate mysql database from a form. First, I tried to insert the php code to connect to the database, to check if everything’s working, and it works fine.
The problem starts when I use query to insert info in the database. Let’s say I do this:
$var = INSERT INTO test (test_1, test_2,…) VALUES (“value_1”, “value_2”,…);
And when I add that line of code, it just break up. There’s no content at all in the page when I preview everything (I inserted some messages like “Connected!” to check if everything’s okay, and it shows).
My question is, am I doing something wrong? I don’t really have an specific code at all, I was just testing the plugin… So I would really appreciate if you could help me with this.
Thanks, and congratulations for making such an amazing plugin.
The topic ‘Help with SQL query inside insert_php’ is closed to new replies.