On a web page, how does one insert multiple PHP-queried database data records?

Source: Internet
Author: User
On a web page, how does one insert multiple PHP-queried database data records? Today, I tried to make jquery mobile PHP, and they felt they were doing a great job of CSS.

I want to write a separate PHP program and View program, but I am confused about the problem.
That is, if these countries are found out from the database, how can they create a row on their own?
If the program and the page are together, we can use a loop, but what should we do with separation? Help T
    
 
 
  • Europe
  • Germany
  • UK 6
  • Asia
  • China 14
  • India
  • Africa
  • Egypt
  • South Africa



Reply to discussion (solution)

The answer has been found. use smarty

Isn't it a loop?

However, this seems to be very resource-consuming, and I don't know if there is a simple way to separate it...

Isn't it a loop?


But in this way, only the PHP language is available in the PHP code page, and there is no such thing as circulating HTML.
However, it seems that dynamic things consume resources with smarty.

Isn't it a loop?


Moderators ~ If you do not need to use smarty to separate php and html, do you have to loop:
 $state";}?>

And this program must be in an html file and cannot be in another php file?

Smarty also uses loops.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.