Comments are available to members only. Sign up or Log in to view these comments.
Main Topics
Browse All TopicsHello!
I have an infuriating parse error in a PHP module for an OSCommerce shopping cart. I have tried several things, mostly hunting down all the single and double quotes in the function arguments. Currently the error we're getting is this:
Parse error: parse error in configuration.php on line 25
I suspect the culprit might be the line with this code:
configuration_value = implode(', ', $_POST['configuration'][$k
Ugh! Those single quotes give me the willies! I've already tried encasing them in double quotes and doing the \' bit, but no dice on either one.
Here is the first section of the code, from lines 1 to 44. I've included starting header comments should the problem be in there:
<?php
/*
$Id: configuration.php,v 1.43 2003/06/29 22:50:51 hpdl Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
require('includes/applicat
require(DIR_WS_FUNCTIONS . 'moectoe.php');
$action = (isset($HTTP_GET_VARS['act
if (tep_not_null($action)) {
switch ($action) {
case 'save':
$configuration_value = tep_db_prepare_input($HTTP
$cID = tep_db_prepare_input($HTTP
while (list($key, $value) = each($_POST['configuration
if (is_array($_POST['configur
{
$configuration_value = implode(', ', $_POST['configuration'][$k
} // end if
} // end while
tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . tep_db_input($configuratio
tep_redirect(tep_href_link
break;
} // end switch
} end out if
$gID = (isset($HTTP_GET_VARS['gID
$cfg_group_query = tep_db_query("select configuration_group_title from " . TABLE_CONFIGURATION_GROUP . " where configuration_group_id = '" . (int)$gID . "'");
$cfg_group = tep_db_fetch_array($cfg_gr
?>
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: lozlozPosted on 2004-03-13 at 16:36:56ID: 10590103
Comments are available to members only. Sign up or Log in to view these comments.