I have tried for days and nights to find a solution. Nothing.
I know how $.post works, but for some reason it just doesn’t.
This what I’m trying to do.
- Call the post function to a PHP page that queries the MySQL for a value (no input required).
- Set a
<p>as this value.
Any suggestions? Much appreciated.
function refresh()
{
$.post("check.php",change(data));
}
function change(text)
{
getElementbyId('money').innerHTML=text;
}
This is just a quickly done code up, but what about this?