คือมีอีเมล์ส่ง Error มาแบบนี้ครับ
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้Query Error reported on page /product_info.php
MySQL error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
SELECT * FROM `products_to_categories` pc, products p WHERE p.products_id = pc.products_id and p.products_status = '1' and pc.categories_id =
นี่คือโค้ด product_info ครับ
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้<?php
/*
$Id: product_info.php,v 1.1.1.1 2004/03/04 23:38:02 ccwjr Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
require('includes/application_top.php');
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO);
$product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$_GET['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "' and FIND_IN_SET(".$_SESSION['current_country']['id'].", p.blocked_countries) = 0");
$product_check = tep_db_fetch_array($product_check_query);
$content = CONTENT_PRODUCT_INFO;
$javascript = 'popup_window.js';
require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/' . TEMPLATENAME_MAIN_PAGE);
require(DIR_WS_INCLUDES . 'application_bottom.php');
?>
ขอความรบกวนเซียนทั้งหลายช่วยดูว่าโค้ดมันผิดตรงไหนหน่อยนะครับ
แล้วควรแก้ไขอย่างไรครับ
ขอบคุณครับ
MySQL error: 1064 << รบกวนเซียนเช็คหน่อยครับ
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้
นี่คือโค้ด product_info ครับ
[Spoil] คลิกเพื่อดูข้อความที่ซ่อนไว้
ขอความรบกวนเซียนทั้งหลายช่วยดูว่าโค้ดมันผิดตรงไหนหน่อยนะครับ
แล้วควรแก้ไขอย่างไรครับ
ขอบคุณครับ