0

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?

0

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.

0

You can install this plugin, Debug Bar, it is not only query, you can also debug more information.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.