require_once('Connections/procm.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_procm, $procm); $query_rs_chi1 = sprintf("SELECT * FROM cartelera WHERE tipo = 'PRINCIPAL' AND posicion = 'DESTACADO 1' ORDER BY puesto ASC"); $rs_chi1 = mysql_query($query_rs_chi1, $procm) or die(mysql_error()); $row_rs_chi1 = mysql_fetch_assoc($rs_chi1); mysql_select_db($database_procm, $procm); $query_rs_chi2 = sprintf("SELECT * FROM cartelera WHERE tipo = 'PRINCIPAL' AND posicion = 'DESTACADO 2' ORDER BY puesto ASC"); $rs_chi2 = mysql_query($query_rs_chi2, $procm) or die(mysql_error()); $row_rs_chi2 = mysql_fetch_assoc($rs_chi2); mysql_select_db($database_procm, $procm); $query_rs_chi3 = sprintf("SELECT * FROM cartelera WHERE tipo = 'PRINCIPAL' AND posicion = 'DESTACADO 3' ORDER BY puesto ASC"); $rs_chi3 = mysql_query($query_rs_chi3, $procm) or die(mysql_error()); $row_rs_chi3 = mysql_fetch_assoc($rs_chi3); ?>
|
||||||||||||||||||||||||||||
Rodeo de Los Cocos y La Corzuela, 5881 Merlo - San Luis - Argentina |
||||||||||||||||||||||||||||
mysql_free_result($rs_chi1); mysql_free_result($rs_chi2); mysql_free_result($rs_chi3); ?>