List results page and javascript error
I am creating a productslist page to be used in ecart5.
When I create a recordset and come to saving it I get an error.
"While executing findServerBehaviours in recordset.htm a javascript error occoured".
The created recordset does not show in the Bindings panel as I would expect.
I suspected the wincachefile at
C:\Documents and Settings\username\Application Data\Adobe\Dreamweaver 9\Configuration
which has been replaced.
Can anyone see where I am going wrong please?
Thanks
John
The page code is:
<?php require_once('Connections/Conn_FB_PHP.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$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;
}
}
mysql_select_db($database_Conn_FB_PHP, $Conn_FB_PHP);
$query_rsProducts = "SELECT * FROM products WHERE ProductCategoryID = 15";
$rsProducts = mysql_query($query_rsProducts, $Conn_FB_PHP) or die(mysql_error());
$row_rsProducts = mysql_fetch_assoc($rsProducts);
$totalRows_rsProducts = mysql_num_rows($rsProducts);
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
</head>
<body>
List Page
</body>
</html>
<?php
mysql_free_result($rsProducts);
?>