query($sql); echo ""; echo ''; } $list = ''; $sql = "SELECT tb_order_list.*,tb_order_item_list.id as iid, tb_order_item_list.* FROM `tb_order_list` left outer join `tb_order_item_list` on tb_order_list.id = tb_order_item_list.order_id where tb_order_list.id='".$cid."'"; // $row_data = $db->getrow($sql); $result = mysql_query( $sql ); $count = mysql_num_rows( $result ); $tempc = ""; while ($row_data = mysql_fetch_assoc($result)) { if ( $row_data['s_status']=="Payment Success" ) $tempc = "Thanks your payment!"; $sql_photo = "SELECT `tb_product_list`.*,`tb_product_list`.id as lid, `tb_product_list`.sorting as lsorting,`tb_product_attachment`.*,`tb_product_attachment`.sorting as asorting FROM `tb_product_list` left outer join `tb_product_attachment` on table_id=`tb_product_list`.id WHERE `tb_product_list`.id ='".$row_data['product_id']."' ORDER BY `lsorting`,asorting"; //$sql_photo = "SELECT `tb_product_list`.* FROM `tb_product_list` WHERE `tb_product_list`.id ='".$row_data['product_id']."' ORDER BY sorting"; $row_photo = $db->getrow($sql_photo); // $result = mysql_query( $sql_photo ); // $count = mysql_num_rows( $result ); //while ($row_photo = mysql_fetch_assoc($result)) { $products_photo = '  dcspares   '; $list .= '
'.$products_photo.'
'.$row_photo['name'].'
'.$row_photo['model'].'
'.$row_data['quantity'].'
US$'.$row_data['unit_price'].'
US$'.$row_data['unit_price']*$row_data['quantity'].'
'; } $sql = 'select * from tb_order_list where member_id = "'.$_SESSION['dcspare_id'].'" and id="'.$cid.'"'; $rowmember = $db->getrow($sql); ?>
Item
Model
Quantity
Unit Price
Sub total




Payment and Shipping

Notice

Our main service was focused on the dealers around the world with B2B style. To save more freight cost, the minimum purchase amount is requested to USD50. The less order would cause the freight cost expensive. We believe everyone can get more gain from the more purchase !

Delivery Address
First Name
Last Name
Address
City
Country
Postal/Zip Code
Phone No
Company
Comments
I have checked all the items are correct.
Please make the transaction done.
'; $jscode .= 'window.onload=function() {'; $jscode .= 'alert("Invalid input in '.$reason.'");'; $jscode .= '}'; $jscode .= ''; echo $jscode; }else if (isset($_GET['empty'])) { $jscode = ''; $jscode .= ''; echo $jscode; } ?>