Código PHP :
<?php require_once('Connections/conection.php'); ?> <?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_conection, $conection); $query_rsDatas = "SELECT * FROM fechas"; $rsDatas = mysql_query($query_rsDatas, $conection) or die(mysql_error()); $row_rsDatas = mysql_fetch_assoc($rsDatas); $totalRows_rsDatas = mysql_num_rows($rsDatas); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Dragon Club Fortaleza</title> <link href="css/estilo.css" rel="stylesheet" type="text/css" /> <link href="css/estilo_imprimir.css" rel="stylesheet" type="text/css" media="print" /> </head> <body> <div id="tudo"> <!--Convite --> <div id="convite"> <img src="images/eventos/convite.jpg" style="position:absolute;" alt="Convite" /> </div> <!--Fim convite --> <div id="data"> <p style="color:#FFF"><?php echo $row_rsDatas['data']; ?></p> </div><!-- Fim data --> </div><!--Fim tudo --> </body> </html> <?php mysql_free_result($rsDatas); ?>
y el CSS
*{
margin:0;
padding:0;
}
body {
background-color: #000;
}
#tudo {
margin:auto;
margin-top:50px;
width:380px;
height:248px;
}
img {
width:380px;
height:248px;
}
#convite {
position:relative;
}
#data {
padding-top: 170px;
padding-left: 10px;
position:relative;
}
p {
font-family:"Arial Black", Gadget, sans-serif;
font-size:18px;
color:#FFF;
}
Alguien tiene una idea de que puede estar ocurriendo?
Desde ya muchas gracias. Claudio