0
目前我卡住了。我必须得到域的概述。这些必须链接到一个记录页面。问题是,我不知道如何。我试图设置一个$ _SESSION,但它然后选择我的数组的第一个变量。目前的事情是用1个例子硬编码的。数组可变链接到另一页
<?php
unset($command);
$command = array(
"command" => "DomainsListActive"
);
$api = new Versio_api();
$versio = $api->api_send($command);
if($versio['success']==0) {
echo("Fout opgetreden. Fout code: ".$versio['command_response_code'].". Fout text: ".$versio['command_response_message']."");
}
else {
if($versio['total_count']>0)
{
require_once("includes/submenu.php");
?>
<div class="col-sm-9 col-md-9" style="width:80%;">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Klantenpaneel</h3>
</div>
<div class="panel-body">
<form method="post" action="">
<table class="table table-striped">
<thead>
<tr>
<th>Domein</th>
<th>TLD</th>
<th>Verloop datum</th>
<th>Automatisch verlengen</th>
</tr>
</thead>
<table class="table table-striped table-bordered">
<tbody>
<?php
$teller = 1;
while($versio['total_count']>=$teller) {
?>
<tr>
<td><?php echo $versio['id_'.$teller]; ?></td>
<td><a href="records.php"><?php echo $versio['domain_'.$teller]; ?></a> </td>
<td><?php echo $versio['tld_'.$teller]; ?></td>
<td><?php echo $versio['expiration_date_'.$teller]; ?></td>
<td><?php echo $versio['auto_renew_'.$teller]; ?></td>
</tr>
<?php $teller++; } ?>
</tbody>
</table>
</form>
</div>
</div>
<?php
} else {
echo("Er zijn geen DNS records gevonden voor dit domein.");
}
}
?>
我得例如,$第三个变量versio [ '_域'。$取款]把我的阵列antoher文档中,record.php。如果有人能够帮助我,那真是太棒了!
你使用MySQL:
然后在records.php,你可以用获得这些价值? –
我正在使用PDO。 – Horizon
请显示该代码。你完全错了。 –