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?

2

2 Answers 2

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 and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.