我很努力將從我的數據庫中提取的數據放入表格佈局中。PHP將結果寫入表格
這是回聲結果:
echo "<p><h3>".$results['ID Number']."</h3>".$results['id_number']."</p>";
echo "<p><h3>".$results['Card Status']."</h3>".$results['card_status']."</p>";
echo "<p><h3>".$results['Full Name']."</h3>".$results['full_name']."</p>";
echo "<p><h3>".$results['DBS/CRB Number']."</h3>".$results['dbs_number']."</p>";
echo "<p><h3>".$results['Job Title']."</h3>".$results['job_title']."</p>";
echo "<p><h3>".$results['Card Start Date']."</h3>".$results['card_start_date']."</p>";
echo "<p><h3>".$results['Card Expiry']."</h3>".$results['card_expiry_date']."</p>";
echo "<img src='photos/".$results['photo_name']."'>";
請有人可以幫助我,它讓我瘋了,也是結果的名稱沒有顯示,例如'ID號'作爲標題,然後'id_number'結果。
還是有顯示從記錄的所有數據,而不是多重回波的
我有一個搜索框查找匹配ID_NUMBER,然後連接到ID_NUMBER的數據記錄,然後顯示一個簡單的方法
而不是p標籤使用表td tr標籤來構建表結構只是像使用p標籤一樣將它們附加到它們中 – Tushar 2014-08-31 18:23:30