|
 |
|
ขอถาม php $result Column ที่มีเว้นวรรคช่องว่างครับ |
|
 |
|
|
 |
 |
|
เปลี่ยนเป็น
echo $result['Lowest Price'];
|
 |
 |
 |
 |
Date :
2012-07-18 21:47:12 |
By :
adaaugusta |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
อืม ปกติไม่ควรว่างตั้งแต่แรกครับ
|
 |
 |
 |
 |
Date :
2012-07-18 22:25:57 |
By :
mr.win |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ผิดตั้งกะออกแบบ DB แล้วอ่า
ห้ามออกแบบให้มันมีช่องว่าง
ตัวเล็กตัวใหญ่ ต้องจำให้แม่น
ไม่อย่างนั้น จะทำให้เราแก้ไม่หยุดไม่หย่อน นะคะ
|
 |
 |
 |
 |
Date :
2012-07-18 22:35:22 |
By :
Th@iDev |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
บอกดีต้องเขียนโค้ดให้รับกับ script ครับ
ผมขอถามต่อนะครับ
Code (PHP)
$sql_select="select * from cox where Title like'%$dataGet%'";
$result1= mysql_query($sql_select,$connect);
while($result=mysql_fetch_array($result1))
{
echo "$result[Title]";
echo $result['Image URL']; << อยากให้แสดงรูปต้องเขียนเช่นไรครับ "<img src="">" ผมพยายามแทรกทุกอย่างแล้วไม่ได้
}
ขอบคุณครับ
|
 |
 |
 |
 |
Date :
2012-07-18 23:16:27 |
By :
โอ๊ต |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลอง print_r($result);
มาดูก่อน ผมว่า เขียนถูกแล้วนะแต่เหมือน Value ไม่มี
ไม่ก็ขาดนามสกุล
ถ้าจะใช้ echo "<img src="">" ต้องเปลี่ยนเป็น "<img src=\"พาธ\ไฟล์.นามสกุล\">";
หรือไม่ก็เปลี่ยนเป็น echo "<img src='พาธ\ไฟล์.นามสกุล'>";
|
ประวัติการแก้ไข 2012-07-19 00:39:25
 |
 |
 |
 |
Date :
2012-07-19 00:33:52 |
By :
adaaugusta |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 04
|