Skip to content

Instantly share code, notes, and snippets.

@NateJLewis
Last active August 29, 2015 14:25
Show Gist options
  • Save NateJLewis/b24507619798c4b4cd15 to your computer and use it in GitHub Desktop.
Save NateJLewis/b24507619798c4b4cd15 to your computer and use it in GitHub Desktop.
<?php
ee()->load->helper('url');
if(!ee()->uri->segment(3))
{
redirect("production");
}
$segment_3 = ee()->uri->segment(3);
$q = ee()->db
->select('*')
->from('exp_store_orders')
->join('exp_store_order_items', 'exp_store_order_items.order_id = exp_store_orders.id')
->where('entry_id', $segment_3);
$result = $q->result_array();
echo "<pre>"; var_dump($result); echo "</pre>";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment