In mysql or mysqli you can add this type of Query:
<?php
$sql = mysqli_query($con, Insert into database itt (name) VALUES ($name)") or die(mysqli_error($con));
?>
What does wordpress do for this?
Or how does the code look?
Does it look like the code above?
In mysql or mysqli you can add this type of Query:
<?php
$sql = mysqli_query($con, Insert into database itt (name) VALUES ($name)") or die(mysqli_error($con));
?>
What does wordpress do for this?
Or how does the code look?
Does it look like the code above?
A good pointer would be to enable debugging in WordPress. Add this to your wp-config.php
: define( 'WP_DEBUG', true );
.
By default WordPress does not show much debug information. More on this here.
You can install this plugin, Debug Bar, it is not only query, you can also debug more information.