PHP:警告:mysql_fetch_assoc()期望参数1是资源

时间:2014-03-01 13:41:09

标签: php mysql warnings

您好我在报告中收到错误

警告:mysql_fetch_assoc()要求参数1为资源,布局在第161行的/home/orangeco/public_html/service/store/allreports.php中给出

有人帮我生成报告,但是当我复制此文件并执行时,我收到了上述错误。

以下是第161行

<?php while ($findreport = mysql_fetch_assoc($reportsq)) {
    $invoicesSql = "SELECT S.stock_title,II.cart_price,QL.laborprice,II.cart_type
                    FROM invoice_items II
                    LEFT JOIN quicklabor QL
                    ON II.labor_desc = QL.labordesc
                    LEFT JOIN stock S
                    ON II.cart_stock_id = S.stock_id
                    WHERE II.invoice_id = '".$findreport['invoice_id']."'";

    $invoicesq = @mysql_query($invoicesSql, $rs_connect);

    while ($findinvoiceport = mysql_fetch_assoc($invoicesq)) {
        $findreport['invoices'][] = $findinvoiceport;
    }   

?>

请帮帮我

0 个答案:

没有答案