risolto mah...vorrei visualizzare i risultati in ordine orizzontale, come fare?
codice parziale
[PHP]
<div class="col-xs-12 col-sm-9">
<div class="panel panel-default">
<div class="panel panel-heading"><h3>Birthday from Today or 1 Week</h3></div>
<div class="padded-panel"><div class="row"><div class="col-sm-12">
<?php
require_once("connetti.php");
// just returns the actor having a birthday
$query = mysql_query("SELECT * FROM actor WHERE
(CASE
WHEN DATE_FORMAT(birthday, '%m-%d') < DATE_FORMAT(NOW(), '%m-%d')
THEN CONCAT(DATE_FORMAT(DATE_ADD(NOW(), INTERVAL 1 YEAR), '%Y-'), DATE_FORMAT(birthday, '%m-%d'))
ELSE CONCAT(DATE_FORMAT(NOW(), '%Y-'), DATE_FORMAT(birthday, '%m-%d'))
END)
BETWEEN CURDATE() AND DATE_ADD(CURDATE(), INTERVAL 1 WEEK) ORDER BY birthday asc ");
while($row=mysql_fetch_array($query)){
?>
<div class="castbox"><p><?php echo '<img src="image_upload/actor/uploads/' . $row['foto'] . '" alt="" height="180" width="150"'?>
<?php echo $row ['nome'] ?><br><?php echo "<a href="cinema.php?id=" . $row['actor_id'] . "">" ."<br>". $row['nome'] ."<br>". $row ['birthday'] . "</a>";?></a><br><i>
[/PHP]
adesso visualizzo cosi