query($query) or die('Error, insert query failed'); $listingCounter = $listingCounter + 1; } echo "Successfully saved order!"; ?>