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,028

HOME > PHP > PHP Forum > ช่วยดูหน่อยค่ะ เบลอแล้วอ่ะ คือมี 2 จุดนะค่ะ 1. ตรงส่วนของโชวว์รายการหมวดสินค้าค่ะ



 

ช่วยดูหน่อยค่ะ เบลอแล้วอ่ะ คือมี 2 จุดนะค่ะ 1. ตรงส่วนของโชวว์รายการหมวดสินค้าค่ะ

 



Topic : 029978



โพสกระทู้ ( 1,542 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Facebook



คือมี 2 จุดนะค่ะ
1. ตรงส่วนของโชวว์รายการหมวดสินค้าค่ะ เปงหมวดเครื่องเขียนแต่มานดันโชว์เปงเครื่องดื่มค่ะ ดังภาพนะค่ะ

1

2. ตรงส่วนของการโชว์ข้อมูลในหมวดค่ะ จากหน้ารายงานรวมของเรามานมี 3 รายการค่ะ แต่พอดึงมาโชวว์แบบแยกประเภทมันขึ้นแค่ 2 ค่ะ

11

รบกวนช่วยดูหน่อยนะค่ะเราแนบ code มาด้วยค่ะ

File : type_list.php
Code (PHP)
<?php
<style type="text/css">
<!--
a:link {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:active {
	text-decoration: none;
	color: #FF0000;
}
body {
	background-color: #FFFFCC;
}
.style1 {
	color: #FFFFFF;
	font-size: 14px;
	font-family: "MS Sans Serif";
	font-weight: bold;
}
.style6 {color: #333333}
-->
</style>
<table width="180" border="1" cellspacing="1" bordercolor="#000000" bgcolor="#FFFFFF">
  <tr>
    <th bgcolor="#333333" scope="col"><center>
      <div align="center"><span class="style1"><br />
          <span class="style6">....</span>ประเภทหมวดสินค้า<br />
      </span><span class="style6">..</span></div>
    </center>    </th>
  </tr>
  <tr>
    <th bgcolor="#CCCCCC" scope="col"><div align="left">
<?
include "connect.php";
$sql="select * from tb_type";
$result=mysql_db_query($dbname,$sql);
echo "<UL>";
while ($rs=mysql_fetch_array($result)) {
		$id_type=$rs[id_type];
		$name_type=$rs[name_type];
				echo "
				<font size='2' face='MS Sans Serif'><LI><A HREF='prd_list.php?id_type=$id_type'>$name_type</A> </font>";
}
echo "</LI>";
?>

    </div></th>
  </tr>
</table>
?>


File : prd_list.php

Code (PHP)
<?php
<?
$id_type_select=$_GET[id_type];
?>
<html>
<head><title>Product List Type</title><meta http-equiv="Content-Type" content="text/html; charset=windows-874"></head>
<body>
<table width="85%" border="0">
<tr>
	<td>
	<?
	include "connect.php";
	include "type_list.php";
	?>
	</td>
	<td width="100%" valign="top"><div align="center">
	<table width="100%" border="0" cellspacing="8">
	<?
	$no=1;
	$sql="select * from tb_product where
	ref_id_type='$id_type_select' ";
	$result=mysql_db_query($dbname,$sql);
	while ($rs=mysql_fetch_array($result)) {
		$id_prd=$rs[id_prd];
		$code=sprintf("%05d",$id_prd);
		$name_prd=$rs[name_prd];
		$detail_prd=$rs[detail_prd];
		$ref_id_type=$rs[ref_id_type];
		$price_prd=$rs[price_prd];
		$unit_prd=$rs[unit_prd];
		
		echo "
		<b><font color='000000' font size='2' face='MS Sans Serif'>รายการหมวดสินค้าประเภท  : $name_type</font></b>
		<center><table width='100%' border='0' >
		<TR BGCOLOR='#FF9900'>
			<td width='5%'><center><b><font color='000000' font size='2' face='MS Sans Serif'>ลำดับ</font></b></center></td>
			<td width='8%'><center><b><font color='000000' font size='2' face='MS Sans Serif'>รหัสสินค้า</font></b></center></td> 
			<td width='30%'><center><b><font color='000000' font size='2' face='MS Sans Serif'>สินค้า</font></b></center></td>
			<td width='20%'><center><b><font color='000000' font size='2' face='MS Sans Serif'>ประเภทหมวดสินค้า</font></b></center></td>
			<td width='10%'><center><b><font color='000000' font size='2' face='MS Sans Serif'>ราคา</font></b></center></td>
			<td width='6%'><center><b><font color='000000' font size='2' face='MS Sans Serif'>จำนวน</font></b></center></td>
			<td width='6%'><center><b><font color='000000' font size='2' face='MS Sans Serif'>เพิ่มเติม</font></b></center></td>
			<td width='6%'><center><b><font color='000000' font size='2' face='MS Sans Serif'>ต้องการ</font></b></center></td>
		</TR> ";

	while($rs=mysql_fetch_array($result)) {
		$id_prd=$rs[id_prd];
		$code_prd=sprintf("%05d",$id_prd);
		$name_prd=$rs[name_prd];
		$ref_id_type=$rs[ref_id_type];
		$price_prd=$rs[price_prd];
		$unit_prd=$rs[unit_prd];


		$sql2="select name_type from tb_type where id_type='$ref_id_type' ";
		$result2=mysql_db_query($dbname,$sql2);
		$rs2=mysql_fetch_array($result2);

		$name_type=$rs2[name_type];

		echo "
			
			<tr bgcolor='#FFFFFF'>
				<td width='5%' ><center><font color='#000000' font size='2' face='MS Sane Serif'>$no</font></center></td>
				<td width='8%' ><center><font size='2' face='MS Sane Serif'>$code_prd</font></center></td>
				<td width='30%' ><font size='2' face='MS Sane Serif'>$name_prd</font></td>
				<td width='20%' ><center><font size='2' face='MS Sane Serif'>$name_type</font></center></td>
				<style>
				.textalignright { text-align:right}
				</style>
				<td width='10%' class='textalignright ' ><font size='2' face='MS Sane Serif'> ". number_format($price_prd, 2) ."</font></td>
				<td width='6%'  class='textalignright '><font color='#000000'font size='2' face='MS Sane Serif'>$unit_prd</font></td>
				<td width='6%' ><center><font color='#000000'font size='2' face='MS Sane Serif'><A HREF=\"product_edit.php?id_edit=$id_prd\">edit</A></font></center></td>
				<td width='6%' ><center><font size='2' face='MS Sane Serif'><A HREF=\"product_delete.php?id_del=$id_prd\" 
				onclick=\"return confirm('ยืนยันลบรายการสินค้า $name_prd ออกจากระบบ')\">delete</A></font></center></td>

		</TR>
		</TR></center>";
		$no++;
	}
	echo "</TABLE>";	
	mysql_close();
} 
?>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>
		
	
?>




Tag : - - - -







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2009-08-05 11:09:53 By : gummezaka View : 1043 Reply : 27
 

 

No. 1



โพสกระทู้ ( 830 )
บทความ ( 0 )



สถานะออฟไลน์


หงะ ทำไม fetch_array ซ้อนกันอะ






Date : 2009-08-05 11:31:33 By : danya
 


 

No. 2



โพสกระทู้ ( 830 )
บทความ ( 0 )



สถานะออฟไลน์


ลองดุอะ

Code (PHP)
<?
$id_type_select=$_GET[id_type];
?>
<html>
<head><title>Product List Type</title><meta http-equiv="Content-Type" content="text/html; charset=windows-874"></head>
<body>
<table width="85%" border="0">
<tr>
	<td>
	<?
	include "connect.php";
	include "type_list.php";
	?>
	</td>
	<td width="100%" valign="top"><div align="center">
	<table width="100%" border="0" cellspacing="8">
	<?
	$no=1;
	$sql="select * from tb_product where
	ref_id_type='$id_type_select' ";
	$result=mysql_db_query($dbname,$sql);
		echo "
		<b><font color='000000' font size='2' face='MS Sans Serif'>รายการหมวดสินค้าประเภท  : $name_type</font></b>
		<center><table width='100%' border='0' >
		<TR BGCOLOR='#FF9900'>
			<td width='5%'><center><b><font color='000000' font size='2' face='MS Sans Serif'>ลำดับ</font></b></center></td>
			<td width='8%'><center><b><font color='000000' font size='2' face='MS Sans Serif'>รหัสสินค้า</font></b></center></td> 
			<td width='30%'><center><b><font color='000000' font size='2' face='MS Sans Serif'>สินค้า</font></b></center></td>
			<td width='20%'><center><b><font color='000000' font size='2' face='MS Sans Serif'>ประเภทหมวดสินค้า</font></b></center></td>
			<td width='10%'><center><b><font color='000000' font size='2' face='MS Sans Serif'>ราคา</font></b></center></td>
			<td width='6%'><center><b><font color='000000' font size='2' face='MS Sans Serif'>จำนวน</font></b></center></td>
			<td width='6%'><center><b><font color='000000' font size='2' face='MS Sans Serif'>เพิ่มเติม</font></b></center></td>
			<td width='6%'><center><b><font color='000000' font size='2' face='MS Sans Serif'>ต้องการ</font></b></center></td>
		</TR> ";

	while($rs=mysql_fetch_array($result)) {
		$id_prd=$rs[id_prd];
		$code_prd=sprintf("%05d",$id_prd);
		$name_prd=$rs[name_prd];
		$ref_id_type=$rs[ref_id_type];
		$price_prd=$rs[price_prd];
		$unit_prd=$rs[unit_prd];


		$sql2="select name_type from tb_type where id_type='$ref_id_type' ";
		$result2=mysql_db_query($dbname,$sql2);
		$rs2=mysql_fetch_array($result2);

		$name_type=$rs2[name_type];

		echo "
			
			<tr bgcolor='#FFFFFF'>
				<td width='5%' ><center><font color='#000000' font size='2' face='MS Sane Serif'>$no</font></center></td>
				<td width='8%' ><center><font size='2' face='MS Sane Serif'>$code_prd</font></center></td>
				<td width='30%' ><font size='2' face='MS Sane Serif'>$name_prd</font></td>
				<td width='20%' ><center><font size='2' face='MS Sane Serif'>$name_type</font></center></td>
				<style>
				.textalignright { text-align:right}
				</style>
				<td width='10%' class='textalignright ' ><font size='2' face='MS Sane Serif'> ". number_format($price_prd, 2) ."</font></td>
				<td width='6%'  class='textalignright '><font color='#000000'font size='2' face='MS Sane Serif'>$unit_prd</font></td>
				<td width='6%' ><center><font color='#000000'font size='2' face='MS Sane Serif'><A HREF=\"product_edit.php?id_edit=$id_prd\">edit</A></font></center></td>
				<td width='6%' ><center><font size='2' face='MS Sane Serif'><A HREF=\"product_delete.php?id_del=$id_prd\" 
				onclick=\"return confirm('ยืนยันลบรายการสินค้า $name_prd ออกจากระบบ')\">delete</A></font></center></td>

		</TR>
		</TR></center>";
		$no++;
	}
	echo "</TABLE>";	
	mysql_close();
 
?>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>


Date : 2009-08-05 11:35:01 By : danya
 

 

No. 3



โพสกระทู้ ( 1,528 )
บทความ ( 1 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์


ลองเปลี่ยน
<?
$id_type_select=$_GET[id_type];
?>
เป็น
<?
$id_type_select=$id_type;
?>

นะครับ
Date : 2009-08-05 11:37:14 By : Sek-nakarin
 


 

No. 4



โพสกระทู้ ( 1,357 )
บทความ ( 4 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์


แวะมาดู
Date : 2009-08-05 11:38:47 By : lozomac
 


 

No. 5



โพสกระทู้ ( 1,542 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Facebook

ง่า เสนอแนะมั้งก้อด้ายคุณ A-mac
Date : 2009-08-05 11:43:42 By : gummezaka
 


 

No. 6



โพสกระทู้ ( 228 )
บทความ ( 0 )



สถานะออฟไลน์
Facebook

แวะมาชม
Date : 2009-08-05 12:26:48 By : rasabut
 


 

No. 7

Guest


<style>
.textalignright { text-align:right}
</style>
เอาไว้ข้างนอก loop ครับ

$sql="select * from tb_product where ref_id_type='$id_type_select' ";
echo '<br />',$sql,'<br />'; //เอา sql ไป run ดูครับว่าได้กี่รายการ
$result=mysql_db_query($dbname,$sql);
Date : 2009-08-05 12:56:55 By : num
 


 

No. 8



โพสกระทู้ ( 2,794 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์


แก้ได้ยังครับ อิ่มๆ ขอนั่งมองก่อน
Date : 2009-08-05 12:59:35 By : panyapol
 


 

No. 9



โพสกระทู้ ( 830 )
บทความ ( 0 )



สถานะออฟไลน์


จขกท เขาแก้ผ้าได้ตั้งนานแล้ว

เอ้ย แก้ไขได้ตั้งนานแล้วอะ

ไม่ยอมบอก เดวเหอะ

เอะ หรือมีติดตรงไหนอีก
Date : 2009-08-05 13:01:05 By : danya
 


 

No. 10

Guest


สนิทกันจริงคู่นี้ 555
Date : 2009-08-05 13:03:29 By : num
 


 

No. 11



โพสกระทู้ ( 1,542 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Facebook

มีอีกอ่ะ ตรงข้อ 1 ที่บอกให้ไปคิวรี่ใหม่อ่ะ ลงมะถูก เหอๆ ช่วยหน่อยจิจ๊ะ
Date : 2009-08-05 13:04:25 By : gummezaka
 


 

No. 12



โพสกระทู้ ( 1,357 )
บทความ ( 4 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์


พอดีวันนี้ยุ่งๆ อ่าครับ อีกอย่าง มีคนช่วยอยู่แล้ว นี่นา
Date : 2009-08-05 13:14:53 By : lozomac
 


 

No. 13



โพสกระทู้ ( 1,542 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Facebook


Date : 2009-08-05 13:20:50 By : gummezaka
 


 

No. 14



โพสกระทู้ ( 1,542 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Facebook

ตอบคุณ num ค่า มานก้อออกมาแบบนี้อ่ะค่ะ

select * from tb_product where ref_id_type='1'

มานก้อตรงอะนะ แต่สิ่งที่อยากดึงมาจริงๆ คือ name_type อ่ะนะ

มานต้องเอาไปทำไรอีกป่าว
Date : 2009-08-05 13:27:20 By : gummezaka
 


 

No. 15

Guest


อันก่อนตอบข้อสองครับ
select * from tb_product where ref_id_type='1'
เห็นว่ามี 3 แต่ออกมา 2 เลย อยากให้เอา sql ไป run ใน php ดูครับว่าได้กี่รายการ

อันนี้ข้อ 1 ครับ :)
<?php
<style type="text/css">
<!--
a:link {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:active {
	text-decoration: none;
	color: #FF0000;
}
body {
	background-color: #FFFFCC;
}
.style1 {
	color: #FFFFFF;
	font-size: 14px;
	font-family: "MS Sans Serif";
	font-weight: bold;
}
.style6 {color: #333333}
-->
</style>
<table width="180" border="1" cellspacing="1" bordercolor="#000000" bgcolor="#FFFFFF">
  <tr>
    <th bgcolor="#333333" scope="col"><center>
      <div align="center"><span class="style1"><br />
          <span class="style6">....</span>ประเภทหมวดสินค้า<br />
      </span><span class="style6">..</span></div>
    </center>    </th>
  </tr>
  <tr>
    <th bgcolor="#CCCCCC" scope="col"><div align="left">
<?
include "connect.php";
$sql="select * from tb_type";
$result=mysql_db_query($dbname,$sql);
echo "<UL>";

$id_type_select=$_GET[id_type];

while ($rs=mysql_fetch_array($result)) {
		$id_type=$rs[id_type];
		$name_type=$rs[name_type];
				echo "
				<font size='2' face='MS Sans Serif'><LI><A HREF='prd_list.php?id_type=$id_type'>$name_type</A> </font>";

		if ($id_type_select == $rs[id_type]){ $name_type_select; } /*******/

}
echo "</LI>";
?>

    </div></th>
  </tr>
</table>
?>



แล้วก็ตรง name_type ตรง
รายการหมวดสินค้าประเภท : $name_type
เปลี่ยนเป็น $name_type_select ครับ
Date : 2009-08-05 13:31:41 By : num
 


 

No. 16

Guest


แก้ๆ เริ่มเมาแล้ว +_+..
<?php
<style type="text/css">
<!--
a:link {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:active {
	text-decoration: none;
	color: #FF0000;
}
body {
	background-color: #FFFFCC;
}
.style1 {
	color: #FFFFFF;
	font-size: 14px;
	font-family: "MS Sans Serif";
	font-weight: bold;
}
.style6 {color: #333333}
-->
</style>
<table width="180" border="1" cellspacing="1" bordercolor="#000000" bgcolor="#FFFFFF">
  <tr>
    <th bgcolor="#333333" scope="col"><center>
      <div align="center"><span class="style1"><br />
          <span class="style6">....</span>ประเภทหมวดสินค้า<br />
      </span><span class="style6">..</span></div>
    </center>    </th>
  </tr>
  <tr>
    <th bgcolor="#CCCCCC" scope="col"><div align="left">
<?
include "connect.php";
$sql="select * from tb_type";
$result=mysql_db_query($dbname,$sql);
echo "<UL>";

$id_type_select=$_GET[id_type];

while ($rs=mysql_fetch_array($result)) {
		$id_type=$rs[id_type];
		$name_type=$rs[name_type];
				echo "
				<font size='2' face='MS Sans Serif'><LI><A HREF='prd_list.php?id_type=$id_type'>$name_type</A> </font>";

		if ($id_type_select == $rs[id_type]){ $name_type_select=$rs[name_type]; } /*******/

}
echo "</LI>";
?>

    </div></th>
  </tr>
</table>
?>



แล้วก็ตรง name_type ตรง
รายการหมวดสินค้าประเภท : $name_type
เปลี่ยนเป็น
รายการหมวดสินค้าประเภท : $name_type_select
ครับ
Date : 2009-08-05 13:33:59 By : num
 


 

No. 17



โพสกระทู้ ( 1,542 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Facebook

งง เอาอานไหนอ่ะ ตาลาย
Date : 2009-08-05 13:45:06 By : gummezaka
 


 

No. 18



โพสกระทู้ ( 1,542 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Facebook

ข้อ 1 มานต้องมาแก้ตรง file 2 มิช่ายเหร๋อค่ะ
เพราะ file แรกเปงแค่เมนูเฉยๆ ค่ะ
Date : 2009-08-05 13:48:54 By : gummezaka
 


 

No. 19

Guest


เอา No.16 นะ
โค้ดยาวๆ เป็นไฟล์ type_list.php

ไฟล์ prd_list.php
แก้แค่ตรง

รายการหมวดสินค้าประเภท : $name_type
เปลี่ยนเป็น
รายการหมวดสินค้าประเภท : $name_type_select

ครับ
Date : 2009-08-05 13:53:47 By : num
 


 

No. 20

Guest


เห็นตัวแปร $name_type ได้มาจากไฟล์ type_list.php นี่นา
Date : 2009-08-05 13:55:08 By : num
 


 

No. 21



โพสกระทู้ ( 1,579 )
บทความ ( 3 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์


เป็นผู้ชมที่ดี
Date : 2009-08-05 13:56:13 By : somparn
 


 

No. 22



โพสกระทู้ ( 830 )
บทความ ( 0 )



สถานะออฟไลน์


ลองดุอีกทีอะ

Code (PHP)
<?php
include "connect.php";
	
$id_type_select	=	$_GET[id_type];
	
$sql		=	"SELECT name_type FROM tb_type WHERE id_type = '$id_type_select' ";
$result		=	mysql_db_query($dbname,$sql);
$rs			=	mysql_fetch_array($result));
$name_type	=	$rs[name_type];

?>
<html>
<head>
	<title>Product List Type <?php echo $name_type ?></title>
	<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
</head>
<body>
<table width="85%" border="0">
	<tr>
		<td><?php include "type_list.php"; ?></td>
	</tr>
	<tr>
		<td width="100%" valign="top">
			<div align="center">
<?php
	
$no			=	1;
$sql		=	"SELECT * FROM tb_product WHERE ref_id_type = '$id_type_select' ";
$result		=	mysql_db_query($dbname,$sql);

		echo "
<b><font color='000000' font size='2' face='MS Sans Serif'>รายการหมวดสินค้าประเภท  : $name_type</font></b>
<center>
	<table width='100%' border='0' cellpaddin='5' >
		<tr BGCOLOR='#FF9900'>
			<td width='5%'><center><b><font color='000000' font size='2' face='MS Sans Serif'>ลำดับ</font></b></center></td>
			<td width='8%'><center><b><font color='000000' font size='2' face='MS Sans Serif'>รหัสสินค้า</font></b></center></td> 
			<td width='30%'><center><b><font color='000000' font size='2' face='MS Sans Serif'>สินค้า</font></b></center></td>
			<td width='20%'><center><b><font color='000000' font size='2' face='MS Sans Serif'>ประเภทหมวดสินค้า</font></b></center></td>
			<td width='10%'><center><b><font color='000000' font size='2' face='MS Sans Serif'>ราคา</font></b></center></td>
			<td width='6%'><center><b><font color='000000' font size='2' face='MS Sans Serif'>จำนวน</font></b></center></td>
			<td width='6%'><center><b><font color='000000' font size='2' face='MS Sans Serif'>เพิ่มเติม</font></b></center></td>
			<td width='6%'><center><b><font color='000000' font size='2' face='MS Sans Serif'>ต้องการ</font></b></center></td>
		</tr> ";

while ( $rs = mysql_fetch_array($result) ) 
{
	$id_prd		=	$rs[id_prd];
	$code_prd	=	sprintf("%05d",$id_prd);
	$name_prd	=	$rs[name_prd];
	$ref_id_type=	$rs[ref_id_type];
	$price_prd	=	$rs[price_prd];
	$unit_prd	=	$rs[unit_prd];

		echo "
			
			<tr bgcolor='#FFFFFF'>
				<td width='5%' ><center><font color='#000000' font size='2' face='MS Sane Serif'>$no</font></center></td>
				<td width='8%' ><center><font size='2' face='MS Sane Serif'>$code_prd</font></center></td>
				<td width='30%' ><font size='2' face='MS Sane Serif'>$name_prd</font></td>
				<td width='20%' ><center><font size='2' face='MS Sane Serif'>$name_type</font></center></td>
				<style>
				.textalignright { text-align:right}
				</style>
				<td width='10%' class='textalignright ' ><font size='2' face='MS Sane Serif'> ". number_format($price_prd, 2) ."</font></td>
				<td width='6%'  class='textalignright '><font color='#000000'font size='2' face='MS Sane Serif'>$unit_prd</font></td>
				<td width='6%' ><center><font color='#000000'font size='2' face='MS Sane Serif'><A HREF=\"product_edit.php?id_edit=$id_prd\">edit</A></font></center></td>
				<td width='6%' ><center><font size='2' face='MS Sane Serif'><A HREF=\"product_delete.php?id_del=$id_prd\" 
				onclick=\"return confirm('ยืนยันลบรายการสินค้า $name_prd ออกจากระบบ')\">delete</A></font></center></td>

		</tr>";
	$no++;
}	
	mysql_close();
?>	
				<table>	
			</div>
		</td>
	</tr>
</table>
</body>
</html>





ถ้าไม่ได้อีก เดวกัดหูขาด
Date : 2009-08-05 14:01:31 By : danya
 


 

No. 23



โพสกระทู้ ( 830 )
บทความ ( 0 )



สถานะออฟไลน์


เออ ตัวแปร $name_type ซ้ำกันเนอะ

ยังงี้ ต้องเปลียนตัวแปรอะ 55+
Date : 2009-08-05 14:07:32 By : danya
 


 

No. 24



โพสกระทู้ ( 830 )
บทความ ( 0 )



สถานะออฟไลน์


ถ้าไม่ได้ ให้เปลียนตัวแปร $name_type เป็น $type_name ทั้งหมด
ใช้การ replace เอา
คลิกเดียวอยุ่แล้ว
Date : 2009-08-05 14:09:20 By : danya
 


 

No. 25



โพสกระทู้ ( 1,542 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Facebook

ง่า สำเร็จแล้วค่ะ ออกมาสวยงามมากต้องขอบคุงทุกๆ คนด้วยนะค่ะ โอกาสหน้าเชิญปวดหมองกันใหม่ค่ะ อิอิ
Date : 2009-08-05 14:23:23 By : gummezaka
 


 

No. 26



โพสกระทู้ ( 830 )
บทความ ( 0 )



สถานะออฟไลน์


เสดซ่ะที

ตัวเองนี่ เสดช้าเนอะ เมือยไปหมดแล้ว 55+
Date : 2009-08-05 14:27:28 By : danya
 


 

No. 27



โพสกระทู้ ( 1,542 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Facebook


Date : 2009-08-05 14:39:50 By : gummezaka
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : ช่วยดูหน่อยค่ะ เบลอแล้วอ่ะ คือมี 2 จุดนะค่ะ 1. ตรงส่วนของโชวว์รายการหมวดสินค้าค่ะ
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ 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-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่