select a.pdt_id, a.end_date - now() as seconds,
b.bid_price, c.uname, c.profile_img
from tbl_products a
left join tbl_auction b on a.pdt_id=b.product_id
left join tbl_members c on b.member_id=c.member_id
where a.pdt_id=183
我稱此查詢中的setTimeout()的JavaScript的方法,對每1秒 它顯示爲MySQL查詢錯誤
pdt_id seconds price uname profile_img
183 107959.000000 0.10 xxxxxxx images/profile/no_image.jpg
一切是正確的結果,什麼是我的問題是,當秒變成183它不顯示輸出秒數:
pdt_id price uname profile_img
183 0.10 xxxxxxx images/profile/no_image.jpg
該查詢()中的錯誤是什麼?如果需要的話我會給表的詳細信息...
你在哪裏調用該查詢? –