Parse Error / Syntax Error line 13
After adding a cart button uploading to server, receive this error. Line 13 in DW is a {. All the code was generated by the add to cart button function:
Here are lines 9-19:
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
The button displays in design view, and the button form code appears to be ok.
BTW, are bindings such as description required, or can they be left to default?
Thanks!