[insert_php]
include(‘Connections/Mkt.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);
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_Mkt, $Mkt);
$query_list = "SELECT * FROM CountryList where type=1";
$list = mysql_query($query_list, $Mkt) or die(mysql_error());
$row_list = mysql_fetch_assoc($list);
$totalRows_list = mysql_num_rows($list);
mysql_select_db($database_Mkt, $Mkt);
$query_listrest = "SELECT * FROM CountryList where Type is null";
$listrest = mysql_query($query_listrest, $Mkt) or die(mysql_error());
$row_listrest = mysql_fetch_assoc($listrest);
$totalRows_listrest = mysql_num_rows($listrest);
[/insert_php]
Please note: Response time may be delayed during holidays.