Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\network_shop\basket.php on line 57
SELECT * FROM where pid =' .;001;002;. '
โค้ดของผมนะครับ
<?php
$con = mysql_connect("localhost","root","")or die("ไม่สามารถติดต่อ Server ได้");
if($con)
$Charset = "SET NAMES tis620";
mysql_query($Charset) or die("error" .mysql_error());
$db = mysql_select_db("db_ec",$con) or die ("ไม่สามารถติดต่อฐานข้อมูลได้");
$pid_array = split(",", $_COOKIE["basket"]);
$total = 0;
foreach($pid_array as $pid) {
if($pid != ";") {
$sql = "SELECT * FROM where pid =' .$pid. '";
$table = mysql_query($sql,$con);