hier een kein scriptje
PHP
<?php
mysql_query("UPDATE `users` SET `online`=NOW() WHERE `login`='{$data->login}'");
$dbres2 = mysql_query("SELECT * FROM `config` WHERE `ding`='1'");
$data2 = mysql_fetch_object($dbres2);
if($data2->killershop == "Ja"){
?>
<div class="title_bg">
<div class="title">cc kopen</div>
</div>
<div style="background-color:#dbd2b7; padding:10px; padding-top:4px;">Is je btg op? Koop dan 20 Callcredits voor 10 miljoen euro<br>
Hier kan je 20 cc kopen voor 10.000.000
<table align=center width=100%>
<tr><td class=mainTxt>
</head>
<center><?php /* ------------------------- */
if($data->contant <= 10000000) {
echo "Sorry, je hebt niet genoeg geld!";
};
if($data->contant >= 10000000) {
if (isset($_POST['submit2'])) {
Echo "U heeft 20 cc gekocht!";
mysql_query("UPDATE `users` set `contant`=`contant`-10000000 WHERE login = '{$data->login}'");
mysql_query("UPDATE `users` set `callcredits`=`callcredits`+20 WHERE login = '{$data->login}'"); };
echo "<FORM METHOD=post ACTION=\"\">
<INPUT name=\"submit2\" type=\"submit\" VALUE=\"Koop 20 Callcredits\"></center>
</FORM>";};
/* ------------------------- */ ?>
</td></tr></table>
</div>
<table width='100%' cellspacing='2' cellpadding='2'>
<tr>
<td class='content_bottom'></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
<?php
}
?>
Toon Meer