e questa è lo script presente sulla pagina dei risultati, è ok?
Codice PHP:
<?php require_once('Connections/connessione_registrazione_utente.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;
}
}
mysql_select_db($database_connessione_registrazione_utente, $connessione_registrazione_utente);
$query_login_risultati = "SELECT * FROM tabella WHERE regione = regione";
$login_risultati = mysql_query($query_login_risultati, $connessione_registrazione_utente) or die(mysql_error());
$row_login_risultati = mysql_fetch_assoc($login_risultati);
$totalRows_login_risultati = mysql_num_rows($login_risultati);
?>