penso che dipende da questo
Codice PHP:
$query = "SELECT
film_actor.actor_id as actor_id,
actor.birthday as birthday,
film_actor.film_id as film_id,
film_actor.credited as credited,
film_actor.genre as genre,
film.film_id as film_ID,
film.movie_title as movie_title,
film.formats as formats,
film.studio as studio,
film.year as film_year,
film.also_known as also_known,
film.incollection as incollection,
film.cover_front as cover_front,
film.release_data as release_data,
film.last_update as last_update,
film.distributor as distributor
FROM film_actor
INNER JOIN film ON film_actor.film_id = film.film_id
INNER JOIN actor ON film_actor.actor_id = actor.actor_id
WHERE film_actor.actor_id = " . $actor_id;
$result = mysql_query( $query );
if (!$result)
die("mySQL error: ". mysql_error());
while( $row = mysql_fetch_object( $result ) ) : ?>
HO cambiato cosi e' non da errore, penso che devo sostituire tutto il codice
Codice PHP:
<?php
//Codice PHP:
$timezone = timezone_open('UTC');
$now = date_create("now",$timezone);
$ora = $now->format('Y-m-d H:i:s');
$today = date_create('today',$timezone);
$oggi = $today->format('Y-m-d H:i:s');
$start = (strlen($row->start) < 5) ? $row->start .'-01-01 00:00:00' : $row->start;
$end = (!empty($row->end) ? ((strlen($row->end) < 5) ? $row->end .'-01-01 00:00:00' : $row->end) : $ora);
//Quando il file verrà incluso o richiesto le variabili diverranno globali al script in uso.
?>