■ Can I execute SQL addition, query, modification, and php in. lbi? ■ How to solve the problem
Source: Internet
Author: User
■ Can I execute SQL addition, query, modification, and php in. lbi? ■ For example, the goods. dwt template references bought_goods.lbi and wants bought_goods.lbi to query other tables and then randomly display more than 10 records. how can this problem be achieved ?? Train of Thought. don't understand the template ■ Can I execute SQL addition, deletion, query, modification, and php in. lbi? ■
For example, the goods. dwt template references bought_goods.lbi and wants bought_goods.lbi to query other tables and then randomly display more than 10 records. how can this problem be achieved ?? Train of Thought. I don't understand the template. I drew a picture specially and hoped to express it accurately. thank you!
------ Solution --------------------
Query in the lbi template is not enough.
$ A_list = $ db-> getAll (query );
$ Smarty-> display ();
Are you ecshop? Refer to goods. php
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.