Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,038

HOME > PHP > PHP Forum > รบกวนดู code ให้ทีน่ะครับ คือ ไม่รู้ว่า code ผิดรึป่าวอะครับ ชื่อประเภทสินค้าไม่ยอมมาโชว์อะครับ



 

รบกวนดู code ให้ทีน่ะครับ คือ ไม่รู้ว่า code ผิดรึป่าวอะครับ ชื่อประเภทสินค้าไม่ยอมมาโชว์อะครับ

 



Topic : 039897

Guest




a

คือ ไม่รู้ว่า code ผิดรึป่าวอะครับ ชื่อประเภทสินค้าไม่ยอมมาโชว์อะครับตอนแรกมันโชว์เป็นรหัส อยากได้เป็นชื่อพอใส่ code ไปไม่ขึ้นเลย ช่วยดูให้ทีน่ะครับ ขอบคุณมากครับ

cart

<?
session_start();
include "function_chklogin.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ตระกร้าสินค้า</title>
<link href="normal_font.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
.style6 {font-size: 13px}
.style8 {font-size: 13px; color: #FF0000;}
.style10 {
color: #FF0000;
font-weight: bold;
}
.style12 {color: #000000; font-weight: bold; }
-->
</style></head>

<body>
<? include "head_user.php" ?>
<br />
<table width="920" align="center">
<tr>
<td width="160" align="left" valign="top" scope="row"><? include "login.php"?>
<? include "menu_type.php"?>
<? include "menu.php"?></td>
<td align="center" valign="top" bgcolor="#FFFFFF"><span class="style6">
<?

$sess_id=$_SESSION['sess_id'];
$sess_name=$_SESSION['sess_name'];
$sess_price=$_SESSION['sess_price'];
$sess_type=$_SESSION['sess_type'];

$sql2= "select * from tb_type where t_id='$sess_type'";
$sqlquery2=mysql_db_query($dbname,$sql2);
$result2= mysql_fetch_array($sqlquery2);
$typename=$result2['t_name'];

$sess_num=$_SESSION['sess_num'];

?>
<strong>

<?

if(count($sess_id)==0){

?>
</strong><font color="#FF0000">ยังไม่มีสินค้าในตะกร้าสินค้าของท่านครับ <a href="productall.php" title="เลือกซื้อสินค้า">คลิกที่น</a><strong><strong><a href="productall.php" title="เลือกซื้อสินค้า">ี่</a> </strong></strong>เพื่อเลือกซื้อสินค้าน่ะครับ<strong><strong>
<?

}else{

?>
</strong></strong></font></span>
<table width="715" cellpadding="0" cellspacing="1" bordercolor="#FF9FAA">
<tr align="center" bgcolor="#FF9FAA" class="normal_font">
<td width="5%" height="22">ลบ</td>
<td width="15%">รหัสสินค้า</td>
<td width="12%">ประเภทสินค้า</td>
<td width="23%">สินค้า</td>
<td width="12%">จำนวน</td>
<td width="18%">ราคา</td>
<td width="15%" colspan="2">รวม</td>
</tr>
<?php

for($i=0;$i<count($sess_id);$i++){
$total_unit=$sess_num[$i]*$sess_price[$i];
$total=$total+$total_unit;
$code=sprintf("%05d",$sess_id[$i]);
?>
<tr align="center" bgcolor="#E1F0FF">
<td><input name="id_del[]2" type="checkbox" id="id_del[]2" value="<?=$sess_id[$i]?>" /></td>
<td class="style6">
<?=$code?></td>
<td height="22" class="style6">
<?=$typename[$i]?></td>
<td class="style6">
<?=$sess_name[$i]?></td>
<td><input name="prd_num[]2" type="text" id="prd_num[]2" style="text-align:center" value="<?=$sess_num[$i];?>" size="5" maxlength="3" /></td>
<td class="style6"><? echo number_format($sess_price[$i],2);?></td>
<td class="style6"><? echo number_format($total_unit,2);?></td>
</tr>
<?

}

?>
<tr>
<td height="22" colspan="8" align="right" class="normal_font">&nbsp;</td>
</tr>
<tr bgcolor="#D4DFAA">
<td height="22" colspan="8" align="right" bgcolor="#FFFFFF" class="style8"><span class="style12">จำนวนราคาทั้งหมด </span> <span class="style10"><? echo number_format($total,2);?></span> <span class="style12">บาท</span></td>
</tr>
<tr>
<td height="22" colspan="8" align="right">&nbsp;</td>
</tr>
<tr>
<td height="22" colspan="8" align="right"><input name="continuebuy" type="button" id="continuebuy" onclick="window.location='productall.php' " value="ซื้อสินค้าต่อ" />
<input name="complete" type="button" id="complete" value="ยืนยันสั่งซื้อสินค้า" onclick="window.location='form_order.php' " /> </td>
</tr>
</table>
<br />
<?
}
?></td>
</tr>
</table>
<br />

<table width="940" align="center">
<tr>
<td width="150" align="left" valign="top" scope="row">&nbsp;</td>
<td align="center" valign="top">
<p><br />
<br />

<tr>

<td align="left">

<form action="" method="post" name="calculate" id="calculate"><tr>

<td height="25" align="center"><br />

<br /></td>

</tr>
</form>
</body>
</html>



Tag : - - - -







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2010-03-04 16:14:58 By : chonburi f.c View : 742 Reply : 0
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : รบกวนดู code ให้ทีน่ะครับ คือ ไม่รู้ว่า code ผิดรึป่าวอะครับ ชื่อประเภทสินค้าไม่ยอมมาโชว์อะครับ
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)







Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 05
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2025 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่