เนื้องานจริงๆคือ สามารถก็อปปี้โค้ดไปวางไว้ใน textarea แล้วเก็บเข้าฐานข้อมูลเพื่อนำมาแสดงหรือแก้ไขได้ทีหลังค่ะ ตอนนี้นำไปเก็บเข้าฐานข้อมูลได้แล้ว แต่ตอนนำมาแสดงนี่ต้องแสดงใน textarea เช่นกัน
ปัญหาก็คือ php จะคิดว่ามันเป็นตัวแปรหนึ่ง ทำให้แท็ก html ที่อยู่ต่อจาก $ กลายเป็นข้อมูลที่นำมาแสดงด้วย ทำให้หน้า html เละไปเลยค่ะ พอมีวิธีบ้างมั้ยคะ
ปล. ณ ที่นี้ นำข้อมูลมาแสดงแบบ text ธรรมดาได้ค่ะ แต่ไม่สามารถแสดงใน textarea ได้
.......คงเหมือนกับการโพสโค๊ดที่มีปัญหาลงในเว็ปบอร์ดหน่ะค่ะ
อยากให้ php แสดงค่า $ ลงใน textarea ค่ะ
Moderators: mindphp, ผู้ดูแลกระดาน
- mindphp
- ผู้ดูแลระบบ MindPHP
- Posts: 27211
- Joined: 22/09/2008 6:18 pm
- Contact:
Re: อยากให้ php แสดงค่า $ ลงใน textarea ค่ะ
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
-
- Similar Topics
- Replies
- Views
- Last post
-
-
อยากให้ textbox ใส่ค่าได้เฉพาะตัวเลขต้องทำยังไงคะ
by moomai » 16/01/2017 10:29 pm » in Programming - PHP - 1 Replies
- 1421 Views
-
Last post by thatsawan
16/01/2017 10:38 pm
-
-
- 1 Replies
- 339 Views
-
Last post by thatsawan
31/10/2019 5:20 pm
-
-
อยากให้ wordpress ดึงตารางในdatabase มาแสดงต้องทำไงครับ
by disslove » 18/05/2012 5:39 pm » in ปัญหาการใช้ phpBB3, SMF, Joomla, Wordpress, CMS, CRM - 0 Replies
- 3728 Views
-
Last post by disslove
18/05/2012 5:39 pm
-
-
- 4 Replies
- 3513 Views
-
Last post by mindphp
18/05/2013 6:47 pm
-
-
[ขคชล] อยากให้ PHP มันจับข้อมูล รหัสพนักงานได้นะครับ
by aoo » 23/12/2011 12:21 pm » in Programming - PHP - 1 Replies
- 1600 Views
-
Last post by secivon
23/12/2011 1:52 pm
-
-
-
อยากให้ Featured Article เป็นแบบในรูปทำยังไงหรอครับ
by Before Dong » 07/09/2017 5:11 pm » in Joomla Development - 2 Replies
- 809 Views
-
Last post by Before Dong
08/09/2017 11:01 am
-
-
-
อยากให้ Modules: Menu แสดงเมนูเป็นแนวยาวครับ
by jamepiyawat » 14/08/2019 3:04 pm » in Joomla Development - 4 Replies
- 560 Views
-
Last post by jamepiyawat
14/08/2019 4:18 pm
-
Who is online
Users browsing this forum: No registered users and 8 guests