Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.



Recommended Posts

I am getting this error when trying to submit an order:


Parse error: parse error, unexpected T_INT_CAST in /home/airuma/public_html/includes/classes/order.php on line 104



That line reads:


$orders_products_query = tep_db_query("select orders_products_id, products_id, products_name, products_model, products_price, products_tax, products_quantity, final_price from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int)$order_id . "'");

while ($orders_products = tep_db_fetch_array($orders_products_query)) {



What is the error there?

Link to comment
Share on other sites

At first check if there is } or ; missing or unnecessary */ just before line 104.


Then check if the value of $order_id is left empty.


The code you've asked is OK and should work, so the problem is somewhere else. <_<

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...