perdon me equivoque
user_mod.php
Código PHP:
Ver original<?php require("config.php"); //requiere config.php
//initialize the session
}
?>
<?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($_SESSION['MM_Username'])) { $colname_Recordset1 = $_SESSION['MM_Username'];
}
$query_Recordset1 = sprintf("SELECT * FROM ft_ausuarios WHERE primer_nombre = %s", GetSQLValueString
($colname_Recordset1, "text")); ?>
<table width="auto" border="0" cellspacing="0">
<tr>
<td><table width="auto" border="0" cellspacing="0">
<tr>
<td><table width="auto" border="0" cellspacing="0">
<tr>
<td><img src="http://www.forosdelweb.com/images/icono_usuario.png" width="25" height="26"/></td>
<td>
<?php if(empty($_SESSION['MM_Username'])) {
echo "Ingrese al Sistema";}
else echo "Bienvenido ".$_SESSION['MM_Username'] ;?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><center><a href="index.php?seccion=welcome">Desconectar</a>
</center></td>
</tr>
</table>
</td>
</tr>
</table>
<?php
?>