<h1>YANZ UPLOAD ANJG</h1>

<?php require_once('Connections/banco1.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;
}
}

$hoje = date('Y-m-d');

mysql_select_db($database_banco1, $banco1);
$query_sql2 = "SELECT * FROM agenda WHERE  data >= '$hoje'  ORDER BY data  ASC LIMIT 3,3";
$sql2 = mysql_query($query_sql2, $banco1) or die(mysql_error());
$row_sql2 = mysql_fetch_assoc($sql2);
$totalRows_sql2 = mysql_num_rows($sql2);



        
?>


<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 


<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<style type="text/css">
<!--
.style1 {
	font-family: "Trebuchet MS", Verdana, Arial;
	font-size: 12px;
}
.style2 {color: #6699CC}
-->
</style>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
<?          
do {

?>

    <td width="33%" valign="top"><a href="http://mexeodoce.com.br/agenda.php"><img src="up/<?php echo $row_sql2['imagem']; ?>" width="162" height="119" border="0" /></a>
      <div class="style1 style3 style2"><strong><?php echo date("d/m/Y", strtotime($row_sql2["data"])); ?> - <?php echo $row_sql2['hora']; ?></strong></div>
      <span class="style1"><strong><?php echo $row_sql2['evento']; ?><br />
      </strong></span></td>
    
    
<? } while ($row_sql2 = mysql_fetch_assoc($sql2));

    