I've just started to learn programming to be able to do changes to my site so i dont know much yet.
My question is I have this script:
<h4 style="border-radius: 0px 0px 0px 0px;"><?php echo $winnername ?></h4>
<span class="val"><?php echo $msg[$lang]["win"]; ?>:</span>
<span class="price">$<?php echo round($winnercost,2); ?></span>
Is it possible to make it auto update when a new winner is chosen, because now you have to reload site for it to update.
This is the first part where it grabs info
<?php
$lastgame = fetchinfo("value","info","name","current_game");
$lastwinner = fetchinfo("userid","games","id",$lastgame-1);
$winnercost = fetchinfo("cost","games","id",$lastgame-1);
$winnerpercent = round(fetchinfo("percent","games","id",$lastgame-1),1);
$winneravatar = fetchinfo("avatar","users","steamid",$lastwinner);
$winnername = fetchinfo("name","users","steamid",$lastwinner);
?>