TE PONGO TODO EL CODIGO, DEPRONTO LO QUIERES VER
BUENO NO ME DEJO PONERLO TODO TE PONGO ESTA PARTE ENTONCES
Código PHP:
Ver original<?php
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
}
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;
}
}
$colname_Recordset1 = "-1";
if (isset($_GET['codigo_inm'])) { $colname_Recordset1 = $_GET['codigo_inm'];
}
$query_Recordset1 = sprintf("SELECT * FROM inmuebles WHERE codigo_inm = %s", GetSQLValueString
($colname_Recordset1, "text"));
$query_Recordset2 = "SELECT inmuebles.codigo_inm, inmuebles.valor, (inmuebles.valor*30/100) AS inicial, (inmuebles.valor-inmuebles.valor*30/100)*(16500/1000000) AS canon FROM inmuebles";
?>
//<?php