Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Get orders between a defined period.
- $dbhost = 'localhost';
- $dbuser = 'ragzzez_orders';
- $dbpass = 'aeb799e';
- $con = mysql_connect($dbhost,$dbuser,$dbpass);
- if (!$con){
- die('Could not connect: ' . mysql_error());
- }
- $dbname = 'ragzzez_magento';
- mysql_select_db($dbname);
- $order_id = "1";
- $result = mysql_query("SELECT * FROM sales_flat_order_item");
- while($r = mysql_fetch_array($result, MYSQL_ASSOC)){
- echo $r["sku"];
- }
- ?>
Add Comment
Please, Sign In to add comment