close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

need help for ecart???

Thread begun 3/12/2009 12:14 pm by toleehua356796 | Last modified 3/12/2009 3:13 pm by Ray Borduin | 3134 views | 3 replies |

toleehua356796

need help for ecart???

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.php 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?

Sign in to reply to this post

CraigRBeta Tester

wrong code posted ?

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"

Sign in to reply to this post

Art

Originally Said By: CraigR
  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.

Sign in to reply to this post

Ray BorduinWebAssist

Look at line 10 of the file: WA_eCart\BlueSkyCart_PHP.php

that is where the issue is happening.

Sign in to reply to this post
Did this help? Tips are appreciated...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...