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
請顯示該代碼。你完全錯了。 –