กรุณาปิด AdBlock!
Cancel your adBlock please.
ขยายหน้าเว็บ
Register
Login
หน้าแรก
ช่วยเหลือ
เข้าสู่ระบบ
สมัครสมาชิก
เด็กไอทีคลับ คลับซ่าฅนไอที
>
iTeach | ไอทีเพื่อการเรียนรู้
>
Programming & Web Development
(ผู้ดูแล:
CyberNoi
) >
while ($row=mysql_fetch_array($sql))
โฆษณา
หน้า: [
1
]
ลงล่าง
« หน้าที่แล้ว
ต่อไป »
พิมพ์
while ($row=mysql_fetch_array($sql)) (อ่าน 5993 ครั้ง)
while ($row=mysql_fetch_array($sql))
«
เมื่อ:
19, 02 2008, 11:26:14 AM »
ประมาณนี้
$sql
=
"SELECT
`onebaht_product`.`pid`,
`onebaht_product`.`topic`,
`onebaht_product`.`color`,
`onebaht_product_images`.`file`,
`onebaht_product`.`adate`,
`onebaht_product`.`price`
FROM
`onebaht_product`
LEFT OUTER JOIN `onebaht_product_images` ON (`onebaht_product`.`pid` = `onebaht_product_images`.`id`)
WHERE
`onebaht_product`.`color` IS NOT NULL
GROUP BY onebaht_product.pid
ORDER BY rand() LIMIT 0,10"
;
$result
=
mysql_query
(
$sql
,
$conn
) or die(
mysql_error
());
while (
$row
=
mysql_fetch_array
(
$result
)) {
$pic
= (
$row
[
file
]!=
NULL
) ? &
#39;tmb_'.$row[file] : 'noimage.gif';
echo
"<tr>
<td class='txtRandom'><a href='?do=view&pid="
.
$row
[
pid
].
"' target='_blank'>
<img src='./product_thumb/"
.
$pic
.
"' align='center' class='imgr'></td>
<td valign='top' class='txtRandom2'><a href='?do=view&pid="
.
$row
[
pid
].
"' target='_blank'>"
.
limitText
(
$row
[
topic
],
100
).
"</a><br />
<span class='style3'>"
.
number_format
(
$row
[
price
]).
" B. </span></td>
</tr>"
;
}
เด็กไอทีคลับ
เด็กไอทีตัวพ่อ
เด็กไอทีคลับชั้นเซียน
พลังความคิด
89
กระทู้: 3,536
บันทึกการเข้า
หน้า: [
1
]
ขึ้นบน
พิมพ์
« หน้าที่แล้ว
ต่อไป »
กระโดดไป:
เลือกหัวข้อ:
-----------------------------
iTalk | ไอทีทอล์ค
-----------------------------
=> Announce & Activities
===> Feedback & Discussion
=> Cyber News Update & Social Media
===> Stop Global Warming! with Dekitclub.com
=> ล้านเล่า
===> ล้านเที่ยว
=> Health Benefit Consultants
=> Album Arts & Photo Gallery
-----------------------------
iT club | ไอทีคลับ คลับของคนไอที
-----------------------------
=> BitTorrent Club
=> Facebook Club
=> Hi5 Club
=> IM Club
=> Twitter Club
=> Video, VideoClip, Movie Club
===> ซาโฆษแนว เอ้ย แซวโฆษณา!!
-----------------------------
iTeach | ไอทีเพื่อการเรียนรู้
-----------------------------
=> Graphic Design & CSS Tutorials
=> Programming & Web Development
=> Webmaster Recommend
===> Wordpress Plugins & Free Wordpress Themes
===> SMF Mods & Free SMF Themes
-----------------------------
iTech | ไอทีและเทคโนโลยี
-----------------------------
=> Computer Tips & Trick
=> Mobile Phone
=> Digital Camera Zone
=> Hardware Zone
=> Software Zone
===> Software Download
===> Help Me
===> Tips & Trick
===> Google Chrome
=> How to Kill & Download Anti Virus Malware
=> Games Zone
-----------------------------
iTrade | ตลาดไอที
-----------------------------
=> Free Ads Classifieds Products & Service
===> IT Products | Computers Notebooks Smart Phone
===> Other Products
กำลังโหลด...