รบกวนพี่ๆแก้ไข เออเร่อเว็บไซต์ PHP ให้ทีครับ งงมาก + 1

เริ่มโดย เอฟ, 14 สิงหาคม 2012, 13:19:48

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

เอฟ

ปัญหาหลักๆ คือ run ในเครื่องผ่าน appserv  ปกติดีทักอย่าง  แตเอามาลงโฮสจริงๆ ดันมีปัญหาซะงั้นครับ

ตัวอย่าง http://www.pilinshop.tk/productcate.php?CateID=8
จะขึ้นเออเร่อ
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/vutthipatr/domains/pilinshop.tk/public_html/productcate.php on line 62

แต่รันในเครื่องได้ครับ

ดาวน์โหลดสคริป : http://www.pilinshop.tk/srr.rar
ฐานข้อมูล : http://www.pilinshop.tk/srr.sql.zip

:wanwan017:

p44n

รับค่าหรือยังครับ

$CateID=$_GET["CateID"];

ใน appserv ไม่รับก็ได้ แต่ใน server จริง ต้องรับทุกครั้ง
Python, PHP OOP, MVC CodeIgniter, MongoDB, MySQL, MsSQL ,CSS Tableless, Responsive Design, Cross-platform, Javascript, jQuery, AngularJS, NodeJS,  Fackbook API, Paypal API, Omise API, Google Map API, C# Window Applications, .NET Framework, JAVA (Android Developer, JSP), Hybrid Application with Cordova + Ionic Framework, ReactJS, React Native

xvlnw.com

ตามนี้ครับ

<?php
$CateID intval($_GET['CateID']);
$sql="select * from products where ca_id=$CateID";
$result=mysql_query($sql,$conn);
while($data=mysql_fetch_array($result)){
?>

[direct=https://cloudhost.in.th/wordpress-hosting]ツ ⓌⓄⓇⒹⓅⓇⒺⓈⓈ ⒽⓄⓈⓉⒾⓃⒼ [/direct] :wanwan014:  :D
[direct=https://cloudhost.in.th/cloudhosting.html]Cloud Hosting[/direct] [direct=https://cloudhost.in.th/cloudvps.html]Cloud Server[/direct] [direct=https://cloudhost.in.th/vpshosting.html]Cloud VPS Hosting[/direct] [direct=https://cloudhost.in.th/windowsvps.html]Cloud Windows[/direct] Tel: 080-348-0843 LINE: ixvlnw

MeenyFancy

แก้ไฟล์ productcate.php ตามนี้ครับ


<?
//============ Start Session และทำการเรียก Function ติดต่อฐานข้อมูล
session_start();
require("connect/connect.php");
$CateID = $_GET["CateID"];
?>
Have a good trip.
[direct=http://petdeecare.com]สุนัขป่วย[/direct] [direct=http://petdeecare.com]แมวป่วย[/direct]
[direct=http://petdeecare.com]หนูป่วย[/direct] [direct=http://petdeecare.com]อาหารแมว[/direct] [direct=http://petdeecare.com]อาหารหมา[/direct]

เอฟ

อ้างถึงจาก: xvlnw.com ใน 14 สิงหาคม 2012, 13:30:42
ตามนี้ครับ

<?php
$CateID intval($_GET['CateID']);
$sql="select * from products where ca_id=$CateID";
$result=mysql_query($sql,$conn);
while($data=mysql_fetch_array($result)){
?>




โอ้วสุดยอดเลยครับ  +1

:wanwan017:

เอฟ

+1 ทุกท่านครับ  เดียวติดปัญหา เดียวมาขอคำแนะนำใหม่ครับ