phi12345 發表於 2012-6-14 10:28:47

撈取資料庫的問題

撈取資料庫的問題

目前我寫了一隻 php

資料庫有資料 但是我做撈取的時候 抓不到呢@@"require_once './include/common.inc.php';

$navigation = ' &raquo; <a href="action.php">活動兌換</a>';
$navtitle = '活動兌換 - ';

if($adminid != '1' && $allowaccget != '1'){
      showmessage('group_nopermission', NULL, 'NOPERM'); //沒有領取權限
}
$chk=$_REQUEST["chk"];
$action_chk = $db->query("select * from {$tablepre}action where `number` = '$chk'");
echo $chk ,"<br/>";
echo $action_chk['name'];echo 不會顯示 name 的資料= ="

woff 發表於 2012-6-14 11:51:47

問題在於哪裡有 pre_xxxx_action的資料表呢?

phi12345 發表於 2012-6-14 12:06:56

我 echo "select * from {$tablepre}action"

出來是 select * from cdb_action

我有建立 action 資料表

照理來說 應該是會 echo name 才對

woff 發表於 2012-6-14 17:39:07

那有name那欄位嗎??

仅念后知 發表於 2016-3-14 03:44:25

没有问题,坚决支持
頁: [1]
查看完整版本: 撈取資料庫的問題