$sql3 =
"INSERT INTO `orders` (cid, eid, order, date_ordered, date_called, status)
VALUES ('$cid', '$eid', '$order', '$date_ordered', '$date_called', '$status')";
The error is:
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order, date_ordered, date_called, status) VALUES ('0012', '0', 'gydfhtfhjghj', '' at line 1