Support

Home / Support
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);

require_once('Connections/Mkt.php'); 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); do { ; echo '“; } while ($row_list = mysql_fetch_assoc($list)); $rows = mysql_num_rows($list); if($rows > 0) { mysql_data_seek($list, 0); $row_list = mysql_fetch_assoc($list); }; require_once('Connections/Mkt.php'); 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); do { ; echo '“; } while ($row_listrest = mysql_fetch_assoc($listrest)); $rows = mysql_num_rows($listrest); if($rows > 0) { mysql_data_seek($listrest, 0); $row_listrest = mysql_fetch_assoc($listrest); }; 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);

Just put [php_everywhere] where you want the code to be executed.

support-cant-find01

support-cant-find02

Please note: Response time may be delayed during holidays.

First Name (required):
Last Name (required):
Email (required):
Phone Number:
Address:
City:
State (required):
Zip code (required):
Country:
Message (required):