• Inloggen
  • Registreer
  • Zoeken
Dit topic
  • Overal
  • Dit topic
  • Dit forum
  • Artikelen
  • Pagina's
  • Forum
  • Downloads
  • Meer opties

ICTscripters

Dé plek voor IT

Dé plek voor IT

Aanmelden

Geavanceerde opties
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
    3. Onopgeloste topics
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
    3. Onopgeloste topics
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  1. Home
  2. Forum
    1. Alle berichten
    2. Recente activiteiten
    3. Onopgeloste topics
  3. ICT Nieuws
  4. Blog
  5. Marktplaats
    1. Werk
    2. Advertenties
    3. Domeinnamen
    4. Websites
    5. Design & lay-outs
    6. Scripts
    7. Overige
  6. Design
  7. Leden
    1. Actieve bezoekers
    2. Team
    3. Leden zoeken
  8. Downloads
  1. Dé plek voor IT - ICTscripters
  2. Forum
  3. Scripting & programmeren
  4. PHP + SQL

Forum

  • [Beta] Ottomaan: gratis browserspel met een echte, levende stad. Feedback gezocht!

    frio 27 oktober 2026 om 12:22
  • Port Father: beta van een browsergame in Antwerpen 1931, feedback welkom

    Jeroen.G 26 oktober 2026 om 10:33
  • Maffia Hotel: een browsergame waarin je van lobbygast naar spil van het hotel groeit

    eeyk 22 oktober 2026 om 18:43
  • Crime Club volledig herschreven vanaf nul

    frio 19 oktober 2026 om 23:57
  • Malavita (nieuwe maffia game, van 0)

    jos 19 oktober 2026 om 23:18
  • Herkent deze Notion-structuurscan echte problemen?

    Jeroen.G 19 oktober 2026 om 15:09
  • 🚀 WE ZOEKEN TESTERS! 🚀

    Servertjee 3 oktober 2026 om 10:56
  • Luchtvaartsoftware: Hoe technologie de moderne luchtvaart verandert

    saggy2829 30 september 2026 om 19:31

Marktplaats

  • [Aanbod] Stadskaart voor je browsergame: van menu naar klikbare stad, vanaf €200

    frio 29 oktober 2026 om 18:17
  • [Verkoop] G4G (Gangsters 4 Gangsters): volledige broncode, nieuw gebouwd in PHP 8.3 | € 30 per domein

    frio 27 oktober 2026 om 18:54
  • [TE KOOP] Malavita.be [Maffiaspel, gebaseerd op omicidio.nl, unieke code]

    Dpm_x 26 oktober 2026 om 00:22

shop

  • gofie
  • 16 augustus 2012 om 14:01
  • gofie
    Professional
    Berichten
    576
    • 16 augustus 2012 om 14:01
    • #1

    beste leden

    Ik ben al tijdje bezig om bij mij shop waar je wapens kan kopen,een optie er in te zetten voor als je een wapen koopt er ook clicks afgaat.

    maar ik snap het niet meer want het wil niet.

    wie weet hier iets van en wil me helpen.

    Mvg Christoffer


    Bezig met me 3 sites.
    Zit meer tijd in dan ik had gedacht.
    ;):cheer:(c)(c)

  • Gast, wil je besparen op je domeinnamen? (ad)
  • xxx
    Professional
    Berichten
    902
    • 16 augustus 2012 om 14:04
    • #2

    Wat wil niet?
    Wat heb je al geprobeerd?

    Uniek mens.

  • Reza
    Professional
    Berichten
    1.536
    • 16 augustus 2012 om 14:05
    • #3

    Net zoals Perry zegt graag meer informatie erbij plaatsten.

    Kun je de code laten zien of een deel?
    Komen er errors of werkt het hele script niet?

    Met vriendelijke groet,
    Reza.

  • gofie
    Professional
    Berichten
    576
    • 16 augustus 2012 om 14:06
    • #4

    Ik heb geprobeert er bij in te zetten

    PHP
    <?phpif($data->clicks < $total) {
    			print "Je hebt $data->wapens wapens, en $data->clicks gangsters.<BR>Je hebt niet zoveel gangsters die nog geen wapen hebben.<BR>\n";
    		} ?>

    Mvg Christoffer


    Bezig met me 3 sites.
    Zit meer tijd in dan ik had gedacht.
    ;):cheer:(c)(c)

  • xxx
    Professional
    Berichten
    902
    • 16 augustus 2012 om 14:10
    • #5
    PHP
    <?php
    if($data->clicks < $total) {


    <?phpif is namelijk niets.

    Uniek mens.

  • Reza
    Professional
    Berichten
    1.536
    • 16 augustus 2012 om 14:10
    • #6

    Wat kwam er te staan?

    PHP
    <?php
    if($data->clicks < $total) 
    {
    print "Je hebt '".$data->wapens."' wapens, en '".$data->clicks."' gangsters.<br />>Je hebt niet zoveel gangsters die nog geen wapen hebben.<br />n";
    } 
    ?>

    Is iets netter...

    Met vriendelijke groet,
    Reza.

  • Luc
    Software Engineer
    Berichten
    1.989
    • 16 augustus 2012 om 14:10
    • #7

    Post eens heel je script, dan bouw ik het wel in voor je...

    Website: https://devimo.nl
    Skype: https://join.skype.com/invite/dJyYILTt7Eqh

  • gofie
    Professional
    Berichten
    576
    • 16 augustus 2012 om 14:13
    • #8
    PHP
    <?php
    
    
    include_once 'includes/config.php';
    
    
    logincheck();
    
    
    
    
    
    
    mysql_query("UPDATE `[users]` SET `online`=NOW() WHERE `login`='".$data['login']."'");
    
    
    ?>
    
    
    <html>
    
    
    <head>
    
    
    
    
    
    
    
    
    
    
    </style>
    
    
    </head>
    
    
    <body>
    
    
    
    
    
    
    <div class="contentGreyTitle"><h1>Winkel</h1></div>
    	<div class="contentText">
    		<table cellpadding="5" cellspacing="0" width="100%">
    			<tr class="grey">
       
    
    
      <tr>
    <table align="center" width=100%>
        <td class="mainTxt" style="padding: 10px">Welkom in de winkel, selecteer een keuse.<br/><br/>
    
    
       	<center><a href="index-v1.php?p=winkel&Action=1">Wapens</a><br/>
    
    
    	<a href="index-v1.php?p=winkel&Action=2">Bescherming</a><br/>
    
    
    	<a href="index-v1.php?p=winkel&Action=3">Verdediging</a><br/>
    	
            <a href="index-v1.php?p=winkel&Action=7">Lucht Vervoer</a><br/>
    	
    	<a href="index-v1.php?p=winkel&Action=6">Auto's</a><br/>
    
    
    	<a href="index-v1.php?p=winkel&Action=5">Tanks</a><br/>
    	
    	
       
        
    
    
     
    
    
    
    
    
    
      </tr>
    
    
    </table>
    
    
    <br />
    
    
    <?php if(isset($_GET['Action']) and $_GET['Action'] == 1) {
    
    
    if($_SERVER['REQUEST_METHOD'] == "POST"){?>
    
    
    <table width="420" align="center">
    
    
    <tr><td class="mainTxt" align="center" style="font-weight:bold; padding:2px">
    
    
            <?php if(isset($_POST['1']) && preg_match('/^[0-9]+$/',$_POST['a1'])) {
    
    
    		$guns = $_POST['a1'];
    
    
    		$power = round($_POST['a1']*3);
    
    
    		$power1 = round($_POST['a1']*1);
    
    
    		$prijs = round($_POST['a1']*76);
    
    
    		$aantal	= round($data['wapens']+$_POST['a1']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a1']} desert eagle(s) gekocht.<BR>n";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geld.n";
    
    
    		}
    
    
    	}
    
    
    	if(isset($_POST['2']) && preg_match('/^[0-9]+$/',$_POST['a2'])) {
    
    
    		$guns = $_POST['a2'];
    
    
    		$power = round($_POST['a2']*10);
    
    
    		$power1 = round($_POST['a2']*5);
    
    
    		$prijs = round($_POST['a2']*380);
    
    
    		$aantal	= round($data['wapens']+$_POST['a2']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a2']} uzi(s) gekocht.<BR>n";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geld.n";
    
    
    		}
    
    
    	}
    
    
    	if(isset($_POST['3']) && preg_match('/^[0-9]+$/',$_POST['a3'])) {
    
    
    		$guns = $_POST['a3'];
    
    
    		$power = round($_POST['a3']*15);
    
    
    		$power1 = round($_POST['a3']*10);
    
    
    		$prijs = round($_POST['a3']*760);
    
    
    		$aantal	= round($data['wapens']+$_POST['a3']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a3']} mp5k(s) gekocht.<BR>n";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geld.n";
    
    
    		}
    
    
    	}
    
    
    	if(isset($_POST['4']) && preg_match('/^[0-9]+$/',$_POST['a4'])) {
    
    
    		$guns = $_POST['a4'];
    
    
    		$power = round($_POST['a4']*20);
    
    
    		$power1 = round($_POST['a4']*3);
    
    
    		$prijs = round($_POST['a4']*910);
    
    
    		$aantal	= round($data['wapens']+$_POST['a4']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a4']} shotgun(s) gekocht.<BR>n";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geld.n";
    
    
    		}
    
    
    	}
    
    
    	if(isset($_POST['5']) && preg_match('/^[0-9]+$/',$_POST['a5'])) {
    
    
    		$guns = $_POST['a5'];
    
    
    		$power = round($_POST['a5']*20);
    
    
    		$power1 = round($_POST['a5']*10);
    
    
    		$prijs = round($_POST['a5']*1500);
    
    
    		$aantal	= round($data['wapens']+$_POST['a5']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a5']} g36c(s) gekocht.<BR>n";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geld.n";
    
    
    		}
    
    
    	}
    
    
    	if(isset($_POST['6']) && preg_match('/^[0-9]+$/',$_POST['a6'])) {
    
    
    		$guns = $_POST['a6'];
    
    
    		$power = round($_POST['a6']*100);
    
    
    		$power1 = round($_POST['a6']*500);
    
    
    		$prijs = round($_POST['a6']*15200);
    
    
    		$aantal	= round($data['wapens']+$_POST['a6']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a6']} sig 552(s) gekocht.<BR>n";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geld.n";
    
    
    		}
    
    
    	}
    
    
    	if(isset($_POST['7']) && preg_match('/^[0-9]+$/',$_POST['a7'])) {
    
    
    		$guns = $_POST['a7'];
    
    
    		$power = round($_POST['a7']*25);
    
    
    		$power1 = round($_POST['a7']*5);
    
    
    		$prijs = round($_POST['a7']*2200);
    
    
    		$aantal	= round($data['wapens']+$_POST['a7']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a7']} ak47(s) gekocht.<BR>n";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geld.n";
    
    
    		}
    
    
    	}
    
    
    	if(isset($_POST['8']) && preg_match('/^[0-9]+$/',$_POST['a8'])) {
    
    
    		$guns = $_POST['a8'];
    
    
    		$power = round($_POST['a8']*30);
    
    
    		$power1 = round($_POST['a8']*20);
    
    
    		$prijs = round($_POST['a8']*3040);
    
    
    		$aantal	= round($data['wapens']+$_POST['a8']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a8']} m4a1(s) gekocht.<BR>n";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geld.n";
    
    
    		}
    
    
    	}
    
    
    	if(isset($_POST['9']) && preg_match('/^[0-9]+$/',$_POST['a9'])) {
    
    
    		$guns = $_POST['a9'];
    
    
    		$power = round($_POST['a9']*100);
    
    
    		$power1 = round($_POST['a9']*50);
    
    
    		$prijs = round($_POST['a9']*6800);
    
    
    		$aantal	= round($data['wapens']+$_POST['a9']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a9']} ak beta(s) gekocht.<BR>n";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geld.n";
    
    
    		}
    
    
    	}
    
    
    	if(isset($_POST['10']) && preg_match('/^[0-9]+$/',$_POST['a10'])) {
    
    
    		$guns = $_POST['a10'];
    
    
    		$power = round($_POST['a10']*20);
    
    
    		$power1 = round($_POST['a10']*10);
    
    
    		$prijs = round($_POST['a10']*2000);
    
    
    		$aantal	= round($data['wapens']+$_POST['a10']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a10']} scherpschut geweren gekocht.<BR>n";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geld.n";
    
    
    		}
    
    
    	}
    
    
    	if(isset($_POST['11']) && preg_match('/^[0-9]+$/',$_POST['a11'])) {
    
    
    		$guns = $_POST['a11'];
    
    
    		$power = round($_POST['a11']*35);
    
    
    		$power1 = round($_POST['a11']*15);
    
    
    		$prijs = round($_POST['a11']*2500);
    
    
    		$aantal	= round($data['wapens']+$_POST['a11']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a11']} m4(s) gekocht.<BR>n";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geld.n";
    
    
    		}
    
    
    	}
    
    
    	if(isset($_POST['12']) && preg_match('/^[0-9]+$/',$_POST['a12'])) {
    
    
    		$guns = $_POST['a12'];
    
    
    		$power = round($_POST['a12']*150);
    
    
    		$power1 = round($_POST['a12']*50);
    
    
    		$prijs = round($_POST['a12']*7500);
    
    
    		$aantal	= round($data['wapens']+$_POST['a12']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a12']} m82a1(s) gekocht.<BR>n";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geld.n";
    
    
    		}
    
    
    	}
    
    
    	if(isset($_POST['13']) && preg_match('/^[0-9]+$/',$_POST['a13'])) {
    
    
    		$guns = $_POST['a13'];
    
    
    		$power = round($_POST['a13']*85);
    
    
    		$power1 = round($_POST['a13']*35);
    
    
    		$prijs = round($_POST['a13']*12000);
    
    
    		$aantal	= round($data['wapens']+$_POST['a13']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a13']} granaat lanceerders gekocht.<BR>n";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geld.n";
    
    
    		}
    
    
    	}
    
    
    	if(isset($_POST['14']) && preg_match('/^[0-9]+$/',$_POST['a14'])) {
    
    
    		$guns = $_POST['a14'];
    
    
    		$power = round($_POST['a14']*45);
    
    
    		$power1 = round($_POST['a14']*10);
    
    
    		$prijs = round($_POST['a14']*9000);
    
    
    		$aantal	= round($data['wapens']+$_POST['a14']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a14']} m3m .50cal(s) gekocht.<BR>n";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geld.n";
    
    
    		}
    
    
    	}
    
    
    	if(isset($_POST['15']) && preg_match('/^[0-9]+$/',$_POST['a15'])) {
    
    
    		$guns = $_POST['a15'];
    
    
    		$power = round($_POST['a15']*100);
    
    
    		$power1 = round($_POST['a15']*300);
    
    
    		$prijs = round($_POST['a15']*14130);
    
    
    		$aantal	= round($data['wapens']+$_POST['a15']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a15']} bazooka(s) gekocht.<BR>n";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geld.n";
    
    
    		}
    
    
    	}
    
    
    	if(isset($_POST['16']) && preg_match('/^[0-9]+$/',$_POST['a16'])) {
    
    
    		$guns = $_POST['a16'];
    
    
    		$power = round($_POST['a16']*450);
    
    
    		$power1 = round($_POST['a16']*325);
    
    
    		$prijs = round($_POST['a16']*18000);
    
    
    		$aantal	= round($data['wapens']+$_POST['a16']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a16']} miniguns gekocht.<BR>n";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geld.n";
    
    
    		}
    
    
    	}
    
    
    ?>
    
    
    </td>
    
    
    </tr>
    
    
    </table>
    
    
    <?php } ?>
    
    
    <form method="post">
    
    
    <table width="420" align="center">
    
    
    <tr>
    
    
            <td align="center" class="mainTxt">
    
    
    			<table>
    
    
    				<tr>
    
    
    					<td colspan="2" width="70" align="center"><strong>Desert Eagle</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="70" align="center"><img width="70" height="70" src="images/wapens/item-deagle.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Attack:</td>
    
    
    					<td width="70">3</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Defence:</td>
    
    
    					<td width="70">1</td>
    
    
    				</tr>
    
    
    				
    
    
    				<tr>
    
    
    					<td width="70">Prijs:</td>
    
    
    					<td width="70">euro 76,-</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="70"><input type="text" name="a1" maxlength="5" size="5" value="1" style="text-align:center;"><input type="submit" name="1" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    		  </table>
    
    
    	  </td>
    
    
    
    
    
    
    	  <td align="center" class="mainTxt" >
    
    
    			<table width="70">
    
    
    				<tr>
    
    
    					<td colspan="2" width="70" align="center"><strong>Uzi</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="70"align="center"><img width="70" height="70" src="images/wapens/item-Uzi.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Attack:</td>
    
    
    					<td width="70">10</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Defence:</td>
    
    
    					<td width="70">5</td>
    
    
    				</tr>
    
    
    				
    
    
    				<tr>
    
    
    					<td width="70">Prijs:</td>
    
    
    					<td width="70">euro 380,-</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="70"><input type="text" name="a2" maxlength="5" size="5" value="1" style="text-align:center;"><input type="submit" name="2" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    			</table>
    
    
    	  </tr>
    
    
    	</tr>
    
    
    	<tr>
    
    
    		<td align="center" class="mainTxt">
    
    
    			<table width="70">
    
    
    				<tr>
    
    
    					<td colspan="2" width="70" align="center"><strong>MP5K</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="70"align="center"><img width="70" height="70" src="images/wapens/item-MP5k.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Attack:</td>
    
    
    					<td width="70">15</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Defence:</td>
    
    
    					<td width="70">10</td>
    
    
    				</tr>
    
    
    				
    
    
    				<tr>
    
    
    					<td width="70">Prijs:</td>
    
    
    					<td width="70">euro 760,-</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="70"><input type="text" name="a3" maxlength="5" size="5" value="1" style="text-align:center;"><input type="submit" name="3" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    			</table>
    
    
    	  </td>
    
    
    
    
    
    
    		<td align="center" class="mainTxt">
    
    
    			<table width="70">
    
    
    				<tr>
    
    
    					<td colspan="2" width="70" align="center"><strong>Shotgun</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="70" align="center"><img width="70" height="70" src="images/wapens/item-Shotgun.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Attack:</td>
    
    
    					<td width="70">20</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Defence:</td>
    
    
    					<td width="70">3</td>
    
    
    				</tr>
    
    
    				
    
    
    				<tr>
    
    
    					<td width="70">Prijs:</td>
    
    
    					<td width="70">euro 910,-</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="70"><input type="text" name="a4" maxlength="5" size="5" value="1" style="text-align:center;"><input type="submit" name="4" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    			</table>
    
    
    	  </td>
    
    
    	</tr>
    
    
    	<tr>
    
    
    		<td align="center" class="mainTxt">
    
    
    			<table width="70">
    
    
    				<tr>
    
    
    					<td colspan="2" width="70" align="center"><strong>G36C</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="70" align="center"><img width="70" height="70" src="images/wapens/item-G36C.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Attack:</td>
    
    
    					<td width="70">20</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Defence:</td>
    
    
    					<td width="70">10</td>
    
    
    				</tr>
    
    
    				
    
    
    				<tr>
    
    
    					<td width="70">Prijs:</td>
    
    
    					<td width="100">euro 1500,-</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="70"><input type="text" name="a5" maxlength="5" size="5" value="1" style="text-align:center;"><input type="submit" name="5" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    			</table>
    
    
    		</td>
    
    
    
    
    
    
    		<td align="center" class="mainTxt">
    
    
    			<table width="70">
    
    
    				<tr>
    
    
    					<td colspan="2" width="70" align="center"><strong>SIG 552</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="70" align="center"><img width="70" height="70"  src="images/wapens/item-SIG_552.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Attack:</td>
    
    
    					<td width="70">100</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Defence:</td>
    
    
    					<td width="70">500</td>
    
    
    				</tr>
    
    
    				
    
    
    				<tr>
    
    
    					<td width="70">Prijs:</td>
    
    
    					<td width="70">euro 15200,-</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="70"><input type="text" name="a6" maxlength="5" size="5" value="1" style="text-align:center;"><input type="submit" name="6" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    			</table>
    
    
    	  </td>
    
    
    	</tr>
    
    
    	<tr>
    
    
    		<td align="center" class="mainTxt">
    
    
    			<table width="70">
    
    
    				<tr>
    
    
    					<td colspan="2" width="70" align="center"><strong>Ak47</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="70" align="center"><img width="70" height="70" src="images/wapens/item-Ak47.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Attack:</td>
    
    
    					<td width="70">25</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Defence:</td>
    
    
    					<td width="70">5</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Prijs:</td>
    
    
    					<td width="70">euro 2200,-</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="70"><input type="text" name="a7" maxlength="5" size="5" value="1" style="text-align:center;"><input type="submit" name="7" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    			</table>
    
    
    		</td>
    
    
    
    
    
    
    		<td align="center" class="mainTxt">
    
    
    			<table width="70">
    
    
    				<tr>
    
    
    					<td colspan="2" width="70" align="center"><strong>M4A1</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="70" align="center"><img width="70" height="70" src="images/wapens/item-m4a1.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Attack:</td>
    
    
    					<td width="70">30</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Defence:</td>
    
    
    					<td width="70">20</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Prijs:</td>
    
    
    					<td width="70">euro 3040,-</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="70"><input type="text" name="a8" maxlength="5" size="5" value="1" style="text-align:center;"><input type="submit" name="8" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    			</table>
    
    
    	  </td>
    
    
    	</tr>
    
    
    	<tr>
    
    
    		<td align="center" class="mainTxt">
    
    
    			<table width="70">
    
    
    				<tr>
    
    
    					<td colspan="2" width="70" align="center"><strong>Ak Beta</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="70"align="center" ><img width="70" height="70" src="images/wapens/item-Ak_Beta.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Attack:</td>
    
    
    					<td width="70">100</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Defence:</td>
    
    
    					<td width="70">50</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Prijs:</td>
    
    
    					<td width="70">euro 6800,-</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="70"><input type="text" name="a9" maxlength="5" size="5" value="1" style="text-align:center;"><input type="submit" name="9" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    			</table>
    
    
    		</td>
    
    
    
    
    
    
    		<td align="center" class="mainTxt">
    
    
    			<table width="70">
    
    
    				<tr>
    
    
    					<td colspan="2" width="70" align="center"><strong>Scherpschut geweer</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="70" align="center"><img width="70" height="70" src="images/wapens/item-Sniper_rifle.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Attack:</td>
    
    
    					<td width="70">20</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Defence:</td>
    
    
    					<td width="70">10</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Prijs:</td>
    
    
    					<td width="70">euro 2000,-</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="70"><input type="text" name="a10" maxlength="5" size="5" value="1" style="text-align:center;"><input type="submit" name="10" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    			</table>
    
    
    	  </td>
    
    
    	</tr>
    
    
    	<tr>
    
    
    		<td align="center" class="mainTxt">
    
    
    			<table width="70">
    
    
    				<tr>
    
    
    					<td colspan="2" width="70" align="center"><strong>M4</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="70"align="center"><img width="70" height="70" src="images/wapens/item-M4.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Attack:</td>
    
    
    					<td width="70">35</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Defence:</td>
    
    
    					<td width="70">15</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Prijs:</td>
    
    
    					<td width="70">euro 2500,-</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="70"><input type="text" name="a11" maxlength="5" size="5" value="1" style="text-align:center;"><input type="submit" name="11" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    			</table>
    
    
    		</td>
    
    
    
    
    
    
    		<td align="center" class="mainTxt">
    
    
    			<table width="70">
    
    
    				<tr>
    
    
    					<td colspan="2" width="70" align="center"><strong>M82A1</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="70"align="center"><img width="70" height="70" src="images/wapens/item-m82a1.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Attack:</td>
    
    
    					<td width="70">100</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Defence:</td>
    
    
    					<td width="70">15</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Prijs:</td>
    
    
    					<td width="70">euro 7500,-</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="70"><input type="text" name="a12" maxlength="5" size="5" value="1" style="text-align:center;"><input type="submit" name="12" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    			</table>
    
    
    	  </td>
    
    
    	</tr>
    
    
    	<tr>
    
    
    		<td align="center" class="mainTxt">
    
    
    			<table width="70">
    
    
    				<tr>
    
    
    					<td colspan="2" width="70" align="center"><strong>Granaat Lanceerder</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="70"align="center"><img width="70" height="70" src="images/wapens/item-Grenade_Launcher.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Attack:</td>
    
    
    					<td width="70">85</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Defence:</td>
    
    
    					<td width="70">35</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Prijs:</td>
    
    
    					<td width="70">euro 12.000,-</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="70"><input type="text" name="a13" maxlength="5" size="5" value="1" style="text-align:center;"><input type="submit" name="13" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    			</table>
    
    
    		</td>
    
    
    
    
    
    
    		<td align="center" class="mainTxt">
    
    
    			<table width="70">
    
    
    				<tr>
    
    
    					<td colspan="2" width="70" align="center"><strong>M3M .50Cal</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="70"align="center"><img width="70" height="70" src="images/wapens/item-machinegun.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Attack:</td>
    
    
    					<td width="70">45</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Defence:</td>
    
    
    					<td width="70">15</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Prijs:</td>
    
    
    					<td width="70">euro 9000,-</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="70"><input type="text" name="a14" maxlength="5" size="5" value="1" style="text-align:center;"><input type="submit" name="14" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    			</table>
    
    
    	  </td>
    
    
    	</tr>
    
    
    	<tr>
    
    
    		<td align="center" class="mainTxt">
    
    
    			<table width="70">
    
    
    				<tr>
    
    
    					<td colspan="2" width="70" align="center"><strong>Bazooka</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="70"align="center"><img width="70" height="70" src="images/wapens/item-Bazooka.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Attack:</td>
    
    
    					<td width="70">100</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Defence:</td>
    
    
    					<td width="70">300</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Prijs:</td>
    
    
    					<td width="70">euro 14.130</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="70"><input type="text" name="a15" maxlength="5" size="5" value="1" style="text-align:center;"><input type="submit" name="15" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    			</table>
    
    
    		</td>
    
    
    
    
    
    
    		<td align="center" class="mainTxt">
    
    
    			<table width="70">
    
    
    				<tr>
    
    
    					<td colspan="2" width="70" align="center"><strong>Minigun</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="70" align="center"><img width="70" height="70" src="images/wapens/item-minigun.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Attack:</td>
    
    
    					<td width="70">450</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Defence:</td>
    
    
    					<td width="70">325</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="70">Prijs:</td>
    
    
    					<td width="70">euro 18.000,-</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="70"><input type="text" name="a16" maxlength="5" size="5" value="1" style="text-align:center;"><input type="submit" name="16" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    			</table>
    
    
    	  </td>
    
    
    	</tr>
    
    
    </table>
    
    
    </form>
    
    
    <?php } elseif(isset($_GET['Action']) and $_GET['Action'] == 2) {
    
    
    if($_SERVER['REQUEST_METHOD'] == "POST"){?>
    
    
    <table width="420" align="center">
    
    
    <tr><td class="mainTxt" align="center" style="font-weight:bold; padding:2px">
    
    
    	<?php if(isset($_POST['1']) && preg_match('/^[0-9]+$/',$_POST['a1'])) {
    
    
    		$guns = $_POST['a1'];
    
    
    		$power = round($_POST['a1']*0);
    
    
    		$power1 = round($_POST['a1']*150);
    
    
    		$prijs = round($_POST['a1']*7300);
    
    
    		$aantal	= round($data['bescherming']+$_POST['a1']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a1']} kogelvrij vest(en) gekochtn";
    
    
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geldn";
    
    
    		}
    
    
    	}
    
    
    	if(isset($_POST['2']) && preg_match('/^[0-9]+$/',$_POST['a2'])) {
    
    
    		$guns = $_POST['a2'];
    
    
    		$power = round($_POST['a2']*0);
    
    
    		$power1 = round($_POST['a2']*300);
    
    
    		$prijs = round($_POST['a2']*15000);
    
    
    		$aantal	= round($data['bescherming']+$_POST['a2']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a2']} bodyguard(s) gekochtn";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geldn";
    
    
    		}
    
    
    	}
    
    
    ?></td></tr></table>
    
    
    <?php
    
    
    }
    
    
    ?>
    
    
    <form method="post">
    
    
    <table width="420" align="center">
    
    
    	<tr>
    
    
    		<td align="center" class="mainTxt">
    
    
    			<table width="200">
    
    
    				<tr>
    
    
    					<td colspan="2" width="200" algin="center"><strong>Kogelvrij vest</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="200"><img src="images/wapens/item-Bulletproof_vest.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Defence:</td>
    
    
    					<td width="100">150</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Prijs:</td>
    
    
    					<td width="100">euro 7.300,-</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="200"><input type="text" name="a1" maxlength="5" size="5" value="1" style="text-align:center;"><input type="submit" name="1" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    			</table>
    
    
    		</td>
    
    
    
    
    
    
    		<td align="center" class="mainTxt">
    
    
    			<table width="200">
    
    
    				<tr>
    
    
    					<td colspan="2" width="200" algin="center"><strong>Bodyguard</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="200"><img src="images/wapens/item-bodyguard.gif" width="200" height="200"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Defence:</td>
    
    
    					<td width="100">300</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Prijs:</td>
    
    
    					<td width="100">euro 15.000</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="200"><input type="text" name="a2" maxlength="5" size="5" value="1" style="text-align:center;"><input type="submit" name="2" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    			</table>
    
    
    		</td>
    
    
    	</tr>
    
    
    </table>
    
    
    </form>
    
    
    <?php } elseif(isset($_GET['Action']) and $_GET['Action'] == 3) {
    
    
    if($_SERVER['REQUEST_METHOD'] == "POST"){?>
    
    
    <table width="420" align="center">
    
    
    <tr><td class="mainTxt" align="center" style="font-weight:bold; padding:2px">
    
    
    <?php if(isset($_POST['1']) && preg_match('/^[0-9]+$/',$_POST['a1'])) {
    
    
    		$guns = $_POST['a1'];
    
    
    		$power = round($_POST['a1']*500);
    
    
    		$prijs = round($_POST['a1']*43800);
    
    
    		$aantal	= round($data['verdediging1']+$_POST['a1']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`defence`=`defence`+$power WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a1']} hond(en) gekochtn";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geldn";
    
    
    		}
    
    
    	}
    
    
    	if(isset($_POST['2']) && preg_match('/^[0-9]+$/',$_POST['a2'])) {
    
    
    		$guns = $_POST['a2'];
    
    
    		$power = round($_POST['a2']*50);
    
    
    		$prijs = round($_POST['a2']*1460);
    
    
    		$aantal	= round($data['verdediging2']+$_POST['a2']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`defence`=`defence`+$power WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a2']} camera(s) gekochtn";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geldn";
    
    
    		}
    
    
    	}
    
    
    	if(isset($_POST['3']) && preg_match('/^[0-9]+$/',$_POST['a3'])) {
    
    
    		$guns = $_POST['a3'];
    
    
    		$power = round($_POST['a3']*500);
    
    
    		$prijs = round($_POST['a3']*25550);
    
    
    		$aantal	= round($data['verdediging3']+$_POST['a3']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`defence`=`defence`+$power WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a3']} hek(ken) gekochtn";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geldn";
    
    
    		}
    
    
    	}
    
    
    	if(isset($_POST['4']) && preg_match('/^[0-9]+$/',$_POST['a4'])) {
    
    
    		$guns = $_POST['a4'];
    
    
    		$power = round($_POST['a4']*10);
    
    
    		$prijs = round($_POST['a4']*365);
    
    
    		$aantal	= round($data['verdediging4']+$_POST['a4']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`defence`=`defence`+$power WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a4']} muur/muren gekochtn";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geldn";
    
    
    		}
    
    
    	}
    
    
    ?>
    
    
    </td></tr></table>
    
    
    <?php } ?>
    
    
    <form method="post">
    
    
    <table width="420" align="center">
    
    
    	<tr>
    
    
    		<td align="center" class="mainTxt">
    
    
    			<table width="200">
    
    
    				<tr>
    
    
    					<td colspan="2" width="200" algin="center"><strong>Bulldog</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="200"><img src="images/wapens/item-Bulldog.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Max:</td>
    
    
    					<td width="100">10</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Defence:</td>
    
    
    					<td width="100">500</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Prijs:</td>
    
    
    					<td width="100">euro 43.800</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="200"><input type="text" name="a1" size="5" maxlength="5" value="1" style="text-align:center;"><input type="submit" name="1" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    			</table>
    
    
    		</td>
    
    
    
    
    
    
    		<td align="center" class="mainTxt">
    
    
    			<table width="200">
    
    
    				<tr>
    
    
    					<td colspan="2" width="200" algin="center"><strong>Camera</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="200"><img src="images/wapens/item-Cam.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Max:</td>
    
    
    					<td width="100">20</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Defence:</td>
    
    
    					<td width="100">50</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Prijs:</td>
    
    
    					<td width="100">euro 1.460</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="200"><input type="text" name="a2" maxlength="5" size="5" value="1" style="text-align:center;"><input type="submit" name="2" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    			</table>
    
    
    		</td>
    
    
    	</tr>
    
    
    	<tr>
    
    
    		<td align="center" class="mainTxt">
    
    
    			<table width="200">
    
    
    				<tr>
    
    
    					<td colspan="2" width="200" algin="center"><strong>Hek</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="200"><img src="images/wapens/item-Barbed_wire.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Max:</td>
    
    
    					<td width="100">15</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Defence:</td>
    
    
    					<td width="100">500</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Prijs:</td>
    
    
    					<td width="100">euro 25.550</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="200"><input type="text" name="a3" size="5" maxlength="5" value="1" style="text-align:center;"><input type="submit" name="3" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    			</table>
    
    
    		</td>
    
    
    
    
    
    
    		<td align="center" class="mainTxt">
    
    
    			<table width="200">
    
    
    				<tr>
    
    
    					<td colspan="2" width="200" algin="center"><strong>Muur</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="200"><img src="images/wapens/item-Stone_wall.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Max:</td>
    
    
    					<td width="100">15</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Defence:</td>
    
    
    					<td width="100">10</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Prijs:</td>
    
    
    					<td width="100">euro 365</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="200"><input type="text" name="a4" maxlength="5" size="5" value="1" style="text-align:center;"><input type="submit" name="4" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    			</table>
    
    
    		</td>
    
    
    	</tr>
    
    
    </table>
    
    
    </form>
    
    
    <?php } elseif(isset($_GET['Action']) and $_GET['Action'] == 5) {
    
    
    if($_SERVER['REQUEST_METHOD'] == "POST"){?>
    
    
    <table width="420" align="center">
    
    
    <tr><td class="mainTxt" align="center" style="font-weight:bold; padding:2px">
    
    
    <?php if(isset($_POST['1']) && preg_match('/^[0-9]+$/',$_POST['a1'])) {
    
    
    		$prijs = round($_POST['a1']*6930);
    
    
    		$guns = $_POST['a1'];
    
    
    		$power = round($_POST['a1']*150);
    
    
    		$aantal	= round($data['tank1']+$_POST['a1']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a1']} M3A1 tank(s) gekochtn";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geldn";
    
    
    		}
    
    
    	}
    
    
    	if(isset($_POST['2']) && preg_match('/^[0-9]+$/',$_POST['a2'])) {
    
    
    		$guns = $_POST['a2'];
    
    
    		$power = $_POST['a2']*670;
    
    
    		$power1 = $_POST['a2']*200;
    
    
    		$prijs = $_POST['a2']*16000;
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-".$prijs.",`attack`=`attack`+".$power.",`defence`=`defence`+".$power1." WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a2']} Leopard 2 tank(s) gekochtn";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geldn";
    
    
    		}
    
    
    	}
    
    
    ?></td></tr></table>
    
    
    <?php } ?>
    
    
    <form method="post">
    
    
    <table width="420" align="center">
    
    
    	<tr>
    
    
    		<td align="center" class="mainTxt">
    
    
    			<table width="200">
    
    
    				<tr>
    
    
    					<td colspan="2" width="200" algin="center"><strong>M3A1</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="200"><img src="images/wapens/item-m4a1tank.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Attack:</td>
    
    
    					<td width="100">150</td>
    
    
    				</tr>
    
    
    				
    
    
    				<tr>
    
    
    					<td width="100">Prijs:</td>
    
    
    					<td width="100">euro 6.930</td>
    
    
    				</tr>
    
    
    				
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="200"><input type="text" name="a1" size="5" maxlength="5" value="1" style="text-align:center;"><input type="submit" name="1" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    			</table>
    
    
    		</td>
    
    
    
    
    
    
    		<td align="center" class="mainTxt">
    
    
    			<table width="200">
    
    
    				<tr>
    
    
    					<td colspan="2" width="200" algin="center"><strong>Leopard 2</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="200"><img src="images/wapens/item-leopard2.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Attack:</td>
    
    
    					<td width="100">670</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Defence:</td>
    
    
    					<td width="100">200</td>
    
    
    				</tr>
    
    
    				
    
    
    				<tr>
    
    
    					<td width="100">Prijs:</td>
    
    
    					<td width="100">euro 16.000</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="200"><input type="text" name="a2" maxlength="5" size="5" value="1" style="text-align:center;"><input type="submit" name="2" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    			</table>
    
    
    		</td>
    
    
    	</tr>
    
    
    </table>
    
    
    </form>
    
    
    <?php }elseif(isset($_GET['Action']) and $_GET['Action'] == 6) {
    
    
    if($_SERVER['REQUEST_METHOD'] == "POST"){?>
    
    
    <table width="420" align="center">
    
    
    <tr><td class="mainTxt" align="center" style="font-weight:bold; padding:2px">
    
    
    <?php if(isset($_POST['1']) && preg_match('/^[0-9]+$/',$_POST['a1'])) {
    
    
    		$prijs = round($_POST['a1']*31500);
    
    
    		$guns = $_POST['a1'];
    
    
    		$power = round($_POST['a1']*200);
    
    
    		$aantal	= round($data['tank1']+$_POST['a1']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a1']} Ferrari(s) gekochtn";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geldn";
    
    
    		}
    
    
    	}
    
    
    	if(isset($_POST['2']) && preg_match('/^[0-9]+$/',$_POST['a2'])) {
    
    
    		$guns = $_POST['a2'];
    
    
    		$power = round($_POST['a2']*200);
    
    
    		$power1 = round($_POST['a2']*2000);
    
    
    		$prijs = round($_POST['a2']*315000);
    
    
    		$aantal	= round($data['tank2']+$_POST['a2']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a2']} Hummer(s) gekochtn";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geldn";
    
    
    		}
    
    
    	}
    
    
    ?></td></tr></table>
    
    
    <?php } ?>
    
    
    <form method="post">
    
    
    <table width="420" align="center">
    
    
    	<tr>
    
    
    		<td align="center" class="mainTxt">
    
    
    			<table width="200">
    
    
    				<tr>
    
    
    					<td colspan="2" width="50" algin="center"><strong>Ferrari</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="50%"><img src="images/wapens/item-auto4.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Attack:</td>
    
    
    					<td width="100">200</td>
    
    
    				</tr>
    
    
    				
    
    
    				<tr>
    
    
    					<td width="100">Prijs:</td>
    
    
    					<td width="100">euro 31.500</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="200"><input type="text" name="a1" size="5" maxlength="5" value="1" style="text-align:center;"><input type="submit" name="1" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    			</table>
    
    
    		</td>
    
    
    
    
    
    
    		<td align="center" class="mainTxt">
    
    
    			<table width="200">
    
    
    				<tr>
    
    
    					<td colspan="2" width="200" algin="center"><strong>Hummer</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="110"><img src="images/wapens/item-Hummer.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Attack:</td>
    
    
    					<td width="100">200</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Defence:</td>
    
    
    					<td width="100">2000</td>
    
    
    				</tr>
    
    
    				
    
    
    				<tr>
    
    
    					<td width="100">Prijs:</td>
    
    
    					<td width="100">euro 315.000,-</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="200"><input type="text" name="a2" maxlength="5" size="5" value="1" style="text-align:center;"><input type="submit" name="2" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    			</table>
    
    
    		</td>
    
    
    	</tr>
    
    
    </table>
    
    
    </form>
    
    
    <?php }elseif(isset($_GET['Action']) and $_GET['Action'] == 7) {
    
    
    if($_SERVER['REQUEST_METHOD'] == "POST"){?>
    
    
    <table width="420" align="center">
    
    
    <tr><td class="mainTxt" align="center" style="font-weight:bold; padding:2px">
    
    
    <?php if(isset($_POST['1']) && preg_match('/^[0-9]+$/',$_POST['a1'])) {
    
    
    		$prijs = round($_POST['a1']*50000);
    
    
    		$guns = $_POST['a1'];
    
    
    		$power = round($_POST['a1']*350);
    
    
    		$power1 = round($_POST['a1']*2000);
    
    
    		$aantal	= round($data['tank1']+$_POST['a1']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a1']} Helikopter(s) gekochtn";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geldn";
    
    
    		}
    
    
    	}
    
    
    	if(isset($_POST['2']) && preg_match('/^[0-9]+$/',$_POST['a2'])) {
    
    
    		$guns = $_POST['a2'];
    
    
    		$power = round($_POST['a2']*250000);
    
    
    		$prijs = round($_POST['a2']*2500000);
    
    
    		$aantal	= round($data['tank2']+$_POST['a2']);
    
    
    		$type1 = array("","gangsters","terroristen","agenten");
    
    
    		$type  = $type1[$data['type']];
    
    
    		if($prijs <= $data['cash']) {
    
    
    			mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power WHERE `login`='{$data['login']}'");
    
    
    			echo "Je hebt {$_POST['a2']} F15(s) gekochtn";
    
    
    		}
    
    
    		else {
    
    
    			echo "Je hebt niet genoeg geldn";
    
    
    		}
    
    
    	}
    
    
    ?></td></tr></table>
    
    
    <?php } ?>
    
    
    <form method="post">
    
    
    <table width="420" align="center">
    
    
    	<tr>
    
    
    		<td align="center" class="mainTxt">
    
    
    			<table width="200">
    
    
    				<tr>
    
    
    					<td colspan="2" width="200" algin="center"><strong>Helikopter</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="200"><img src="images/wapens/item-heli.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Attack:</td>
    
    
    					<td width="100">350</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Defence:</td>
    
    
    					<td width="100">2000</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Prijs:</td>
    
    
    					<td width="100">euro 50.000,-</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="200"><input type="text" name="a1" size="5" maxlength="5" value="1" style="text-align:center;"><input type="submit" name="1" class="button" value="Koop" /></td>
    
    
    				</tr>
    
    
    			</table>
    
    
    		</td>
    
    
    
    
    
    
    		<td align="center" class="mainTxt">
    
    
    			<table width="200">
    
    
    				<tr>
    
    
    					<td colspan="2" width="200" algin="center"><strong>F15</strong></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" width="200"><img src="images/wapens/item-f15.gif"></td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Attack:</td>
    
    
    					<td width="100">250.000</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td width="100">Prijs:</td>
    
    
    					<td width="100">euro 2.500.000</td>
    
    
    				</tr>
    
    
    				<tr>
    
    
    					<td colspan="2" align="center" width="200"><input type="text" name="a2" maxlength="5" size="5" value="1" style="text-align:center;"><input type="submit" name="2" class="button" value="Koop" /></td>
    
    
    </table>	
    
    
    </td></tr>
    
    
    </table>
    
    
    </form>
    
    
    <?php 
    
    
    }?>
    </tr>
    </table>
    </div>
    </body>
    
    
    </html>
    Meer tonen



    Nieuwe reactie samengevoegd met originele reactie op 16.08.12 14:14:33:
    er komen geen errors in hij doet gwn helemaal niks daarom snap ik het ook niet.

    Mvg Christoffer


    Bezig met me 3 sites.
    Zit meer tijd in dan ik had gedacht.
    ;):cheer:(c)(c)

  • Reza
    Professional
    Berichten
    1.536
    • 16 augustus 2012 om 14:17
    • #9

    Zet error_reporting eens aan.
    Wat gebeurt er dan?

    Haal ook de spelfout eruit,wellicht is dat het:
    algin -> align

    Verder moet je dit script ook echt verbeteren.

    Gebruik de functie "or die (mysql_error())".
    Gebruik commentaar.
    Maak alles overzichtelijk.
    Plaats een klein PHP script niet op één regel.
    En zo nog meer dingen.

    Met vriendelijke groet,
    Reza.

  • xxx
    Professional
    Berichten
    902
    • 16 augustus 2012 om 14:24
    • #10

    2500 regels voor een shop script is wel héél erg...

    Uniek mens.

Registratie

Nog geen account? Registreer je nu en word deel van onze community!

Nu registreren Aanmelden

ICT Nieuws

  • PHP waarschuwt voor twee ernstige bugs die makkelijk uit te buiten lijken

    Aaron 22 oktober 2026 om 22:19

Blogs

  • Functioneel ontwerp

    Dees 28 december 2014 om 12:38
  • Access Control List implementatie in PHP/MySQL - deel 1/2

    FangorN 28 december 2018 om 12:35
  • Access Control List implementatie in PHP/MySQL - deel 2/2

    FangorN 29 december 2018 om 12:37

Gebruikers die dit topic bekijken

  • 1 Gasten
  1. Marktplaats
  2. Design
  3. Voorwaarden
  4. Ons team
  5. Leden
  6. Geschiedenis
  7. Regels
  8. Links
  9. Privacyverklaring
  10. Contact
ICTscripters ©2005 - 2026 , goedkope hosting door DiMoWeb.com, BE0558.915.582
Sponsors: Beste kattenhotel provincie Antwerpen
Style: Nexus by cls-design
Stylename
Nexus
Manufacturer
cls-design
Licence
Commercial styles
Help
Supportforum
Visit cls-design