ciao, grazie per la risposta,
ho provato questa soluzione
$unixtimestamp=strtotime("2011-10-10");
$data=getdate($unixtimestamp);
ma nn cambia niente. Continua a visualizzare la data nel formato yyyy mm dd
Tony
qui sotto posto il codice della pagina se può essere d'aiuto:
<?php require_once('Connections/conn_php.php'); ?>
<?php mysql_query("SET NAMES 'utf8'");?>
<?php
$unixtimestamp=strtotime("2011-10-10");
$DataUscitaDVD=getdate($unixtimestamp);
?>
<?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;
}
}
$currentPage = $_SERVER["PHP_SELF"];
$maxRows_Recordset1 = 5;
$pageNum_Recordset1 = 0;
if (isset($_GET['pageNum_Recordset1'])) {
$pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
}
$startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;
mysql_select_db($database_conn_php, $conn_php);
$query_Recordset1 = "SELECT dbfilms_prodotti.Prodotto, dbfilms_prodotti.Titolo, dbfilms_prodotti.DataUscitaDVD, dbfilms_prodotti.FileCopertina, dbfilms_prodotti.Curiosita, dbfilms_generifilm.DescrizioneGenere, dbfilms_tipiaudio.DescrizioneTipoAudio FROM (dbfilms_prodotti LEFT JOIN dbfilms_generifilm ON dbfilms_prodotti.Genere = dbfilms_generifilm.Genere) LEFT JOIN dbfilms_tipiaudio ON dbfilms_prodotti.TipoAudio = dbfilms_tipiaudio.TipoAudio WHERE DVD = 'S' AND dbfilms_generifilm.Genere<>'VG' AND dbfilms_generifilm.Genere<>'' AND dbfilms_generifilm.Genere<>'ND' and dbfilms_generifilm.Genere<>'HC' and dbfilms_generifilm.Genere <>'SHC' and dbfilms_prodotti.SitoVideovip=1 and dbfilms_prodotti.Trama NOT LIKE 'ND%' AND dbfilms_prodotti.Trama<>'ND' group by dbfilms_prodotti.Titolo ORDER BY dbfilms_prodotti.Titolo ASC";
$query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
$Recordset1 = mysql_query($query_limit_Recordset1, $conn_php) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
if (isset($_GET['totalRows_Recordset1'])) {
$totalRows_Recordset1 = $_GET['totalRows_Recordset1'];
} else {
$all_Recordset1 = mysql_query($query_Recordset1);
$totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
}
$totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;
$queryString_Recordset1 = "";
if (!empty($_SERVER['QUERY_STRING'])) {
$params = explode("&", $_SERVER['QUERY_STRING']);
$newParams = array();
foreach ($params as $param) {
if (stristr($param, "pageNum_Recordset1") == false &&
stristr($param, "totalRows_Recordset1") == false) {
array_push($newParams, $param);
}
}
if (count($newParams) != 0) {
$queryString_Recordset1 = "&" . htmlentities(implode("&", $newParams));
}
}
$queryString_Recordset1 = sprintf("&totalRows_Recordset1=%d%s", $totalRows_Recordset1, $queryString_Recordset1);
/**
* @package Website_Template
* @since Website 1.0
*/
// -----------------------------------------------------------------------------
require '_top.php';
require '_nav.php';
?>
<style type="text/css">
.filtra_lettera {
text-align: center;
}
.icona_formato {
}
.fascetta {
position: relative;
width: 250px;
float: left;
height: 245px;
background-image: url(images/sfondo_dvd_box_small.png);
background-position: 0px 0px;
background-repeat: no-repeat;
padding-top: 15px;
padding-left: 29px;
overflow: visible;
}
.genere_data {
}
.main.clear body .content p {
text-align: center;
}
.title img {
text-align: center;
}
.centra {
text-align: center;
}
.icona_blu_ray {
background-image: url(images/BR_sfondo_curiosita.png);
background-repeat: no-repeat;
height: 55px;
width: 55px;
position: absolute;
margin-left: 300px;
margin-top: 5px;
}
.filtra_lettera1 {text-align: center;
font-weight: bold;
}
.content p .filtra_lettera1 {
text-align: center;
}
</style>
<section id="content" class="beta">
<article class="post page">
<section class="main clear">
<h1 class="title">FILM DVD NOLEGGIO</h1>
<div class="content">
</p>
<div class="filtra_lettera" id="lettera"><span class="filtra_lettera1">
Seleziona un film in base alla lettera iniziale del titolo</span>
[ 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |</div>
Film DVD presenti nel catalogo <?php echo $totalRows_Recordset1 ?>
____________________________
</p>
<?php do { ?>
<div class="lista_film" id="dati_film">
<div class="icona_formato" id="dvd">
<h3><span id="dvd"><?php echo $row_Recordset1['Titolo']; ?></span>
</h3>
</div>
<h5> Formato: DVD
Genere: <?php echo $row_Recordset1['DescrizioneGenere']; ?>
Data uscita: <?php echo $row_Recordset1['DataUscitaDVD']; ?>
Curiosità:
<span class="testo_curiosita"><?php echo $row_Recordset1['Curiosita']; ?></span>
</h5>
<div class="fascetta" id="immagine">
<div align="left">[img]images/<?php echo $row_Recordset1['FileCopertina']; ?>[/img]</div>
</div>
<p align="left"></p>
<p align="left"></p>
<p align="left"></p>
<p align="left"></p>
<p align="left"></p>
<p align="left"></p>
<p align="left">
</p>
<p align="left"></p>
</div>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
<?php if ($pageNum_Recordset1 > 0) { // Show if not first page ?>
"> Primi 10 film << | ">10 film precedenti <
<?php } // Show if not first page ?>
|
<?php if ($pageNum_Recordset1 < $totalPages_Recordset1) { // Show if not last page ?>
">> 10 film successivi | ">>> Ultimi film
<?php } // Show if not last page ?>
</p>
</div>
</section>
<ul class="social clear">
<script>function fbs_click() {u=location.href;t=document.title;window.open('htt p://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeU RIComponent(t),'sharer','toolbar=0,status=0,width= 626,height=436');return false;}</script><style> html .fb_share_link { padding:2px 0 0 20px; height:16px; background:url(http://static.ak.facebook.com/images...on.gif?6:26981) no-repeat top left; }</style>
Condividi su Facebook |
Tweet
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);j s.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}} (document,"script","twitter-wjs");</script>
[/list]
</article>
</section>
<?php
require '_aside_left.php';
require '_bottom.php';
?>
<?php
mysql_free_result($Recordset1);
?>

Rispondi quotando