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.



Your result can be seen below.

Result of php executing





Full code of new.php

  1.         //голый оборот
  2.         $raw_income = $db->query("SELECT order_cost_one*order_count as order_sum FROM $db_market_orders 
  3.         WHERE order_done>0 AND order_cart>0 $where AND order_cancel=0 GROUP BY order_id")->fetchColumn();
  4.     //Дає тільки останній рядок а мені треба всі рядки порахувати
  5.  
  6.         //голый оборот
  7.         $raw_income = $db->query("SELECT order_cost_one*order_count as order_sum FROM $db_market_orders 
  8.         WHERE order_done>0 AND order_cart>0 $where AND order_cancel=0 GROUP BY order_id")->fetchAll();
  9.     //дає array
  10.  
File Description
  • new
  • PHP Code
  • 13 Sep-2021
  • 581 Bytes
You can Share it: