PDA

View Full Version : need help for ecart???


toleehua356796
03-12-2009, 12:14 PM
i rebuilder mine website. used the ecart. follow the {eCart 4
Getting Started Guide} build all the page. eg: items_Results.php page. when i finish the all page. used the fire fox . only show me this: Parse error: syntax error, unexpected T_VARIABLE in C:\AppServ\www\yaozone\WA_eCart\BlueSkyCart_PHP.ph p on line 10

when i open the code :

<?php
//WA eCart Include
require_once("WA_eCart/BlueSkyCart_PHP.php");
?><?php require_once('Connections/connbulesky.php'); ?>
<?php
$BlueSkyCart->GetContent();
?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") *******wrong on this line 10 ******
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

i don,t know how to fix this. can any one can help?

Thanks ! I am new. please toll me how to fix it. i need step by step to fix. please?

CraigR
03-12-2009, 01:07 PM
if i read this correctly, the error is on the page below, not on the page you posted

"\BlueSkyCart_PHP.ph p on line 10"

Art
03-12-2009, 02:03 PM
if i read this correctly, the error is on the page below, not on the page you posted

"\BlueSkyCart_PHP.ph p on line 10"

I would guess the person is looking for the error in the actual page not the

cart folder page.

Ray Borduin
03-12-2009, 03:13 PM
Look at line 10 of the file: WA_eCart\BlueSkyCart_PHP.php

that is where the issue is happening.