I'm having a lot of trouble with this part. I want to simply do a search in the database and move to my main program, this without giving a refresh . I know how to do all of PHP and MySQL, however the jQuery part is no longer my area, I know the basics of JS.
Next: The search I want is SELECT questoes_resolvidas FROM dados_usuario WHERE id = id_usuario;
. This I know how to do. But the big problem is to get this result and send it to my index.php . I do not want to send the result into a variable in index.php . It can be a variable of the same JavaScript itself.
I have tried to pass $_SESSION
but it does not work, because I have to update the page to $_SESSION
to get the updated values. I do not want to refresh the page, but the variable with the MySQL command response will be updated every time I call the try_it()
function.
Help me, please. I've tried to learn this jQuery but I think I need to go deeper into JS first, and I do not have time for that right away.