สมมุติผมมี code อยู่ในตัวแปร a = [ben,50,400] ใน file.py
ผมจะใช้ flask ในการดึงข้อมูลจาก file.py ไปใส่ในช่อง text ของ html ผมต้องเรียกยังไงครับ
ขอสอบถามวิธีการดึงข้อมูลมาลงใน table ที่เราต้องการหน่อยครับ
Moderators: mindphp, ผู้ดูแลกระดาน
-
- PHP Super Member
- Posts: 244
- Joined: 06/01/2020 9:58 am
-
- PHP Super Member
- Posts: 244
- Joined: 06/01/2020 9:58 am
Re: ขอสอบถามวิธีการดึงข้อมูลมาลงใน table ที่เราต้องการหน่อยครับ
ทำได้แล้วครับ ใน return ต้องใส่ ตัวแปรที่เราต้องการจะแสดงขึ้นไปด้วย
-
- Similar Topics
- Replies
- Views
- Last post
-
-
สร้าง Dynamic Table ให้กับ HTML Table โดยใช้ jQuery
by Ik Kat » 29/06/2017 2:03 pm » in Jquery & Ajax Knowledge - 0 Replies
- 1135 Views
-
Last post by Ik Kat
29/06/2017 2:03 pm
-
-
-
MySQL optimize table แล้วจำเป็นต้อง analyze table ด้วยไหม
by ktanan » 07/01/2014 11:34 am » in SQL - Database - 2 Replies
- 1928 Views
-
Last post by ktanan
07/01/2014 1:10 pm
-
-
-
อยากทำ create table แบบกรอกชื่อ table เองผ่านเว็ป
by tanapong » 25/04/2020 11:06 pm » in Programming - PHP - 10 Replies
- 3976 Views
-
Last post by tanapong
27/04/2020 2:06 pm
-
-
-
MySQL Database :การสร้าง View Table และการเรียกใช้งาน View Table
by thatsawan » 30/10/2016 2:38 pm » in SQL Knowledge - 0 Replies
- 6072 Views
-
Last post by thatsawan
30/10/2016 2:38 pm
-
-
- 1 Replies
- 1214 Views
-
Last post by tsukasaz
17/09/2014 11:44 am
Who is online
Users browsing this forum: No registered users and 7 guests