1
I’m having a lot of trouble with this part. I want to simply do a database search and move on to my main program, this without giving a refresh. I know how to do all part of PHP and Mysql, however the part of jQuery is no longer my area, I know the basics of JS.
Next: the research 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 take this result and send it to my index php.. I don’t want to send the result inside a variable in the index php.. It can be a Javascript variable itself.
I’ve tried going through $_SESSION
but you can’t, because I have to update the page to the $_SESSION
take the updated values. I don’t want to refresh the page, but the variable with the response of the Mysql command will be updated every time I call the function try_it()
.
Help me, please. I’ve tried to learn this jQuery but I believe I need to delve into JS first, and I don’t have time for this right now.
Are you using any framework?
– fernandosavio
only bootstrap but use very little
– Daniel Santos
On the server side is pure PHP then?
– fernandosavio
yes, I just want to return a string from a look at this other topic, it’s the same problem and I detailed there http://answall.com/questions/180156/como-buscar-valores-em-um-arquivo-php-com-jquery-ajax/180165#180165
– Daniel Santos