Hi..
Thanks a lot for the reply! Here I am pasting few lines from the code..
clients_det_Insert.php -- Error shows in the 9th line.
<?php require_once("Connections/authen.php"); ?>
<?php require_once("WA_DataAssist/WA_AppBuilder_PHP.php"); ?>
<?php
// WA Application Builder Insert
if (isset($_POST["Insert_x"])) // Trigger
{
$WA_connection = $authen;
$WA_table = "clients_det";
$WA_sessionName = "WADA_Insert_clients_det"; --> this is the 9th line
$WA_redirectURL = "clients_det_Detail.php";
$WA_keepQueryString = false;
$WA_indexField = "clientname";
$WA_fieldNamesStr = "";
$WA_fieldValuesStr = ;
$WA_columnTypesStr = "";
$WA_fieldNames = explode("|", $WA_fieldNamesStr);
$WA_fieldValues = explode("|", $WA_fieldValuesStr);
$WA_columns = explode("|", $WA_columnTypesStr);
$WA_connectionDB = $database_authen;
mysql_select_db($WA_connectionDB, $WA_connection);
if (!session_id()) session_start();
$insertParamsObj = WA_AB_generateInsertParams($WA_fieldNames, $WA_columns, $WA_fieldValues, -1);
$WA_Sql = "INSERT INTO `" . $WA_table . "` (" . $insertParamsObj->WA_tableValues . ") VALUES (" . $insertParamsObj->WA_dbValues . ")";
$MM_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error());
$_SESSION[$WA_sessionName] = mysql_insert_id();
if ($WA_redirectURL != "") {
if ($WA_keepQueryString && $WA_redirectURL != "" && isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] !== "" && sizeof($_POST) > 0) {
$WA_redirectURL .= ((strpos($WA_redirectURL, '?') === false)?"?":"&").$_SERVER["QUERY_STRING"];
}
header("Location: ".$WA_redirectURL);
}
}
?>
-----------------------------------------------------------------------------------------------------
clients_det_Update.php --> Error in the line 34
<?php require_once('Connections/authen.php'); ?>
<?php require_once("WA_DataAssist/WA_AppBuilder_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;
}
}
?>
<?php
$Paramclientname_WADAclients_det = "-1"; ---> This is the 34th line
if (isset($_GET['clientname'])) {
$Paramclientname_WADAclients_det = (get_magic_quotes_gpc()) ? $_GET['clientname'] : addslashes($_GET['clientname']);
}
mysql_select_db($database_authen, $authen);
$query_WADAclients_det = sprintf("SELECT clientname FROM clients_det WHERE clientname = %s", GetSQLValueString($Paramclientname_WADAclients_det, "text"));
$WADAclients_det = mysql_query($query_WADAclients_det, $authen) or die(mysql_error());
$row_WADAclients_det = mysql_fetch_assoc($WADAclients_det);
$totalRows_WADAclients_det = mysql_num_rows($WADAclients_det);?>
--------------
Thanks for the support
Sudeep K Pavithran