$query = $pdo->query("SELECT * FROM cart, table_products WHERE cart.cart_ip = '{$_SERVER['REMOTE_ADDR']}' AND table_products.products_id = cart.cart_id_products");
$row_count = $query->rowCount();
if ($row_count > 0) {
while ($result = $query->fetch(PDO::FETCH_OBJ)) {