Hey jason,
A little confused. Line 41 when I look at it in Dreamweaver falls right in the middle of this recordset code block.
<?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;
THIS IS WHERE LINE 41 IS ---- case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$pass_word_rsUSERNAME = "-1";
if (isset($_SESSION['pass_word'])) {
$pass_word_rsUSERNAME = $_SESSION['pass_word'];
}
$user_name_rsUSERNAME = "-1";
if (isset($_SESSION['user_name'])) {
$user_name_rsUSERNAME = $_SESSION['user_name'];
}
mysql_select_db($database_toyosupport, $toyosupport);
$query_rsUSERNAME = sprintf("SELECT * FROM entry WHERE Password = %s AND Name = %s", GetSQLValueString($pass_word_rsUSERNAME, "text"),GetSQLValueString($user_name_rsUSERNAME, "text"));
$rsUSERNAME = mysql_query($query_rsUSERNAME, $toyosupport) or die(mysql_error());
$row_rsUSERNAME = mysql_fetch_assoc($rsUSERNAME);
$totalRows_rsUSERNAME = mysql_num_rows($rsUSERNAME);
mysql_select_db($database_toyosupport, $toyosupport);
$query_rsPROVINCE = "SELECT * FROM provinces ORDER BY ID ASC";
$rsPROVINCE = mysql_query($query_rsPROVINCE, $toyosupport) or die(mysql_error());
$row_rsPROVINCE = mysql_fetch_assoc($rsPROVINCE);
$totalRows_rsPROVINCE = mysql_num_rows($rsPROVINCE);
?>
Could you confirm where is should be moved to.