D
D
demy7642021-03-25 01:23:57
Backup
demy764, 2021-03-25 01:23:57

When selecting data from the database, the results are doubled, the same result is shown twice where is the error in the code?

Here is the code. I can't figure out where the error is:

$sort='asc';
$sql = "SELECT * FROM open_product_prices, open_product_descriptions, open_products_categories, open_products WHERE open_product_prices.product_id = open_product_descriptions.product_id and open_product_prices.product_id = open_products_categories.product_id and open_product_prices.product_id = open_products.product_id and category_id=211 and list_price>0 ORDER BY price sort";
$result = mysql_query($sql) or die(mysql_error());
$table = "

vendor codeNameRecom. pricePrice PROMOTIONTo order
".$product_code."".$product."".$list_price."".$price."To order
";
echo $table;

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question