Lid |
|
Heey,
Ik heb een bestel systeem, ik heb alleen een fout erin zitten. Zodra ik door de eerste stap ben ga ik naar stap 2 (Onderataande code). Maar die laat niks zien me scherm blijft leeg en ik krijg ook geen foutmeldingen terug. Kan iemand voor mij even kijken a.u.b?
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
if(!defined('ALPHA') || ALPHA !== 1) {
die('Deze pagina is niet rechtstreeks aan roepbaar!');
}
?>
<div id="step">
<ul class="step">
<li class="this-step-one"></li>
<li class="step-two-active"></li>
<li class="step-three"></li>
</ul>
</div>
<div id="show-step">
<div class="show-step-top"></div>
<div class="p">
<?php
$Asql = "SELECT id FROM packages WHERE type = 0";
$Aquery = $con->query($Asql);
$packs = array();
while($Arow = $Aquery->fetch_assoc()) {
$packs[] = $Arow['id'];
}
if(!isset($_GET['package']) || !in_array((int) $_GET['package'], $packs)) {
$Bsql = "SELECT id, name, details, img FROM packages WHERE type = 0";
$Bquery = $con->query($Bsql);
if($Bquery->num_rows >= 1) {
while($Brow = $Bquery->fetch_assoc()) {
?>
<div class="p">
<a class="link" href="?p=bestel&part=step2&<?=(isset($_GET['domain'])) ? 'domain='.$_GET['domain'].'&' : ''; ?>package=<?=$Brow['id']; ?>">
<img src="/images/pakketten/<?=$Brow['img']; ?>" alt="<?=$Brow['name']; ?>" style="float: left; margin-right: 10px;">
<p align="left">Klik hier indien u het <?=$Brow['name']; ?> wilt bestellen.</p>
</a>
<br />
<?=$Brow['details']; ?>
</div>
<br /><br />
<?php
}
}
}elseif(isset($_GET['package']) && in_array((int) $_GET['package'], $packs) && !isset($_GET['confirm'])) {
?>
Indien de onderstaande gegevens correct zijn kunt u dit onderaan de pagina aangeven. U wordt dan doorgestuurd om uw persoonsgegevens in te vullen.<br />
<br />
<div style="width: 200px; float: left;"><b>Domein:</b></div>
<div style="float: left;">
<?=(isset($_GET['domain']) && !empty($_GET['domain']) && preg_match('#(.*?).(.*?)#si', $_GET['domain'])) ? $_GET['domain'] : 'geen'; ?>
</div>
<div style="clear: left;"></div>
<br />
<div style="width: 200px; float: left;"><b>Pakket:</b></div>
<div style="width: 400px; float: left;">
<?php
$Bsql = "SELECT name, domains, disk_quota, datalim, ftpaccs, price FROM packages WHERE id = ".(int) $_GET['package']." LIMIT 1";
$Bquery = $con->query($Bsql);
if($Bquery->num_rows == 1) {
$Brow = $Bquery->fetch_assoc();
echo $Brow['name'].'<br />';
echo $Brow['domains'].' '.(((count($Brow['domains'])) == 1) ? 'Domeinnaam' : 'Domeinnamen').'<br />';
echo $Brow['disk_quota'].' Ruimte<br />';
echo $Brow['datalim'].' Dataverkeer<br />';
echo $Brow['ftpaccs'].' FTP Account'.((count($Brow['ftpaccs']) == 1) ? '' : 's').'<br />';
echo '€ '.$Brow['price'].' Per maand<br />';
?>
</div>
<div style="clear: left;"></div>
<br /><br />
<a href="?p=bestel&part=step2&<?=(isset($_GET['domain']) && !empty($_GET['domain']) && preg_match('#(.*?).(.*?)#si', $_GET['domain']))
? 'domain='.$_GET['domain'].'&'
: ''; ?>package=<?=$_GET['package']; ?>&confirm=1" class="a_p">
<small><img src="images/bestel/partakkoord.png"></small>
</a><br />
<a href="?p=bestel" class="a_p"><small><img src="images/bestel/partweiger.png"></small></a>
<?php
}else{
echo 'Helaas werd het door u geselecteerde pakket niet gevonden, gelieve een ander pakket te kiezen<br />';
echo '<a href="?p=bestel&part=step2&'.((isset($_GET['domain']) && !empty($_GET['domain']) && preg_match('#(.*?).(.*?)#si', $_GET['domain']))
? '?domain='.$_GET['domain']
: '').'" class="a_p">Ga terug</a>';
}
?>
<?php
}elseif(isset($_GET['package']) && in_array((int) $_GET['package'], $packs) && isset($_GET['confirm'])) {
if(!defined('DELTA')) {
define('DELTA', 1);
}
if($_GET['confirm'] == 1) {
include 'includes/nl/bestel/particulier.php';
}elseif($_GET['confirm'] == 2) {
include 'includes/nl/bestel/particulier.php';
}else{
include 'includes/nl/bestel/particulier.php';
}
}
?>
</div>
<div class="show-step-footer"></div>
<!-- //end step -->
<div style="clear: both;"></div>
</div>
<?php if(!defined('ALPHA') || ALPHA !== 1) { die('Deze pagina is niet rechtstreeks aan roepbaar!'); } ?> <div id="step"> <ul class="step"> <li class="this-step-one"></li> <li class="step-two-active"></li> <li class="step-three"></li> </ul> </div> <div id="show-step"> <div class="show-step-top"></div> <div class="p"> <?php $Asql = "SELECT id FROM packages WHERE type = 0"; $Aquery = $con->query($Asql); while($Arow = $Aquery->fetch_assoc()) { $packs[] = $Arow['id']; } if(!isset($_GET['package']) || !in_array((int ) $_GET['package'], $packs)) { $Bsql = "SELECT id, name, details, img FROM packages WHERE type = 0"; $Bquery = $con->query($Bsql); if($Bquery->num_rows >= 1) { while($Brow = $Bquery->fetch_assoc()) { ?> <div class="p"> <a class="link" href="?p=bestel&part=step2& <?=(isset($_GET['domain'])) ? 'domain='.$_GET['domain'].'&' : ''; ?>package= <?=$Brow['id']; ?>"> <img src="/images/pakketten/<?=$Brow['img']; ?>" alt="<?=$Brow['name']; ?>" style="float: left; margin-right: 10px;"> <p align="left">Klik hier indien u het <?=$Brow['name']; ?> wilt bestellen.</p> </a> <br /> <?=$Brow['details']; ?> </div> <br /><br /> <?php } } }elseif(isset($_GET['package']) && in_array((int ) $_GET['package'], $packs) && !isset($_GET['confirm'])) { ?> Indien de onderstaande gegevens correct zijn kunt u dit onderaan de pagina aangeven. U wordt dan doorgestuurd om uw persoonsgegevens in te vullen.<br /> <br /> <div style="width: 200px; float: left;"><b>Domein:</b></div> <div style="float: left;"> <?=(isset($_GET['domain']) && !empty($_GET['domain']) && preg_match('#(.*?).(.*?)#si', $_GET['domain'])) ? $_GET['domain'] : 'geen'; ?> </div> <div style="clear: left;"></div> <br /> <div style="width: 200px; float: left;"><b>Pakket:</b></div> <div style="width: 400px; float: left;"> <?php $Bsql = "SELECT name, domains, disk_quota, datalim, ftpaccs, price FROM packages WHERE id = ".(int) $_GET['package']." LIMIT 1"; $Bquery = $con->query($Bsql); if($Bquery->num_rows == 1) { $Brow = $Bquery->fetch_assoc(); echo $Brow['name'].'<br />'; echo $Brow['domains'].' '.(((count($Brow['domains'])) == 1) ? 'Domeinnaam' : 'Domeinnamen').'<br />'; echo $Brow['disk_quota'].' Ruimte<br />'; echo $Brow['datalim'].' Dataverkeer<br />'; echo $Brow['ftpaccs'].' FTP Account'.((count($Brow['ftpaccs']) == 1) ? '' : 's').'<br />'; echo '€ '.$Brow['price'].' Per maand<br />'; ?> </div> <div style="clear: left;"></div> <br /><br /> <a href="?p=bestel&part=step2& <?=(isset($_GET['domain']) && !empty($_GET['domain']) && preg_match('#(.*?).(.*?)#si', $_GET['domain'])) ? 'domain='.$_GET['domain'].'&' : ''; ?>package=<?=$_GET['package']; ?>&confirm=1" class="a_p"> <small><img src="images/bestel/partakkoord.png"></small> </a><br /> <a href="?p=bestel" class="a_p"><small><img src="images/bestel/partweiger.png"></small></a> <?php }else{ echo 'Helaas werd het door u geselecteerde pakket niet gevonden, gelieve een ander pakket te kiezen<br />'; echo '<a href="?p=bestel&part=step2&'.((isset($_GET['domain']) && !empty($_GET['domain']) && preg_match('#(.*?).(.*?)#si', $_GET['domain'])) ? '?domain='.$_GET['domain'] : '').'" class="a_p">Ga terug</a>'; } ?> <?php }elseif(isset($_GET['package']) && in_array((int ) $_GET['package'], $packs) && isset($_GET['confirm'])) { } if($_GET['confirm'] == 1) { include 'includes/nl/bestel/particulier.php'; }elseif($_GET['confirm'] == 2) { include 'includes/nl/bestel/particulier.php'; }else{ include 'includes/nl/bestel/particulier.php'; } } ?> </div> <div class="show-step-footer"></div> <!-- //end step --> <div style="clear: both;"></div> </div>
|