Guest User

Untitled

a guest
Jun 18th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <?php
  2. // Get orders between a defined period.
  3. $dbhost = 'localhost';
  4. $dbuser = 'ragzzez_orders';
  5. $dbpass = 'aeb799e';
  6.  
  7. $con = mysql_connect($dbhost,$dbuser,$dbpass);
  8.  
  9. if (!$con){
  10. die('Could not connect: ' . mysql_error());
  11. }
  12.  
  13. $dbname = 'ragzzez_magento';
  14.  
  15. mysql_select_db($dbname);
  16.  
  17. $order_id = "1";
  18.  
  19. $result = mysql_query("SELECT * FROM sales_flat_order_item");
  20.  
  21.  
  22. while($r = mysql_fetch_array($result, MYSQL_ASSOC)){
  23.  
  24. echo $r["sku"];
  25.  
  26. }
  27.  
  28. ?>
Add Comment
Please, Sign In to add comment