我似乎无法查看我的交易历史记录?

时间:2014-01-29 15:45:07

标签: php

请帮助:(

<?php
include 'dbFunctions.php';
session_start();
$user_id = $_SESSION['user_id'];
?>

<table>
    <td>
        <b><label for="billinghistory">Billing History:</b></label>
        <select name="billing_history"

以下代码似乎无法打印我的交易记录,我不确定我是否选择了正确的字段。

<?php
$query3 = "SELECT * from billinghistory";
$result3 = mysqli_query($link, $query3) or die(mysqli_error($link));
    while ($row3 = mysqli_fetch_array($result3)) {
        $billing_name = $row3['billing_name'];
        $billing_name_id = $row3['billing_name_id'];
?>

            <option value="<?php echo $billing_name; ?> "><?php echo $billing_name ;?></option>
        </select>     
    </td>
</table>

1 个答案:

答案 0 :(得分:0)

尝试

while ($row3 = mysqli_fetch_array($result3,MYSQLI_ASSOC)) {