Hi, thanks for replying, appreciate it.
this is my code view...
<?php require_once('Connections/gcc.php'); ?>
<?php
// Load the tNG classes
require_once('includes/tng/tNG.inc.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_gcc, $gcc);
$query_articlepage = "SELECT * FROM category WHERE category_id = 17";
$articlepage = mysql_query($query_articlepage, $gcc) or die(mysql_error());
$row_articlepage = mysql_fetch_assoc($articlepage);
$totalRows_articlepage = mysql_num_rows($articlepage);
mysql_select_db($database_gcc, $gcc);
$query_Recordset1 = "SELECT * FROM endorse_to_cats LEFT JOIN endorsements ON endorsements.endorsements_id = endorse_to_cats.endorseid_cats WHERE endorse_to_cats.catsid_endorse = 17";
$Recordset1 = mysql_query($query_Recordset1, $gcc) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
mysql_select_db($database_gcc, $gcc);
$query_voucher = "SELECT * FROM voucher ORDER BY voucher_id ASC";
$voucher = mysql_query($query_voucher, $gcc) or die(mysql_error());
$row_voucher = mysql_fetch_assoc($voucher);
$totalRows_voucher = mysql_num_rows($voucher);
// Show Dynamic Thumbnail
$objDynamicThumb1 = new tNG_DynamicThumbnail("", "KT_thumbnail1");
$objDynamicThumb1->setFolder("images/endorsements/");
$objDynamicThumb1->setRenameRule("{Recordset1.endorsements_image1}");
$objDynamicThumb1->setResize(150, 0, true);
$objDynamicThumb1->setWatermark(false);
// Download File downloadObj1
$downloadObj1 = new tNG_Download("", "KT_download1");
// Execute
$downloadObj1->setFolder("downloads/");
$downloadObj1->setRenameRule("{voucher.voucher_file}");
$downloadObj1->Execute();
?>
<?php
// Require the MXI classes
require_once ('includes/mxi/MXI.php');
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" c />
<title><?php echo $row_articlepage['category_metatitle']; ?></title>
<meta name="description" c>
<meta name="keywords" c>
<meta name="language" c />
<meta name="author" c />