0
點擊查看按鈕後,什麼都沒有發生,我開始想知道什麼是錯?點擊查看按鈕,什麼也沒有發生
GALLERIES NAME POST EDIT DELETE
Slideshow VIEW
SERVICES POST VIEW
代碼:
<?php foreach ($gallery as $gallery_item): ?>
<tr>
<td><?php echo $gallery_item['galleries_name']; ?></td>
<td>
<?php if($gallery_item['galleries_post_type'] == 'post') { echo "#"; }?>
</td>
<td>
<button type="button" class="edit" onclick="location.href = '
<?php
if($gallery_item['galleries_post_type'] == 'post') {
echo site_url('cpages/galleries/'.$gallery_item['galleries_id']);
} else {
echo site_url('cpages/viewpictures/'.$gallery_item['galleries_id']);
}
?>
';">VIEW</button>
</td>
連接http協議? – Jigar7521
添加'site_url'函數定義 –
您獲得了哪些HTML最終代碼?發表它。 – MarcM