I'm trying to code a php page to generate a pdf. In this pdf I would like to have a table with products in: I have a request in the mysql database.
Code:
1. $ commands_products = mysql_query ('SELECT * FROM WHERE lcg_shop_commands_products (id_command = 189)');
2. $ data = mysql_fetch_array ($ commands_products)
I get a array.
and I would put it in another table
Code:
1. $contentTable = array ($data ['name'], $data ['reference'], $data ['quantity'], $data ['price'], $data ['name'], $data ['reference'], $data ['quantity'], $data ['price'], etc. ...,);
As if I bum a listing of products with the id_command = 189.
but the problem is that I do not know how it finished. Have you any idea?
Bookmarks