■ 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. 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 ■ 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