new - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of new.php
- //голый оборот
- $raw_income = $db->query("SELECT order_cost_one*order_count as order_sum FROM $db_market_orders
- WHERE order_done>0 AND order_cart>0 $where AND order_cancel=0 GROUP BY order_id")->fetchColumn();
- //Дає тільки останній рядок а мені треба всі рядки порахувати
- //голый оборот
- $raw_income = $db->query("SELECT order_cost_one*order_count as order_sum FROM $db_market_orders
- WHERE order_done>0 AND order_cart>0 $where AND order_cancel=0 GROUP BY order_id")->fetchAll();
- //дає array