ciao ragazzi, ho questo script che mi visualizza il testo e l'immagine prese dal database:
<?php
include('config.php');
mysql_select_db("$db_name",$connessione);
$result= mysql_query("SELECT id_file,text FROM img_data");
if (!$result) {
exit ('<p> Errore mentre recuperavo i dati' . mysql_error() . '</p>');
}
while($row = mysql_fetch_row($result)){
echo '<img src="mostra.php?id=74" max width="200px" />'; \\RICHIAMO FOTO
echo '<table>';
echo '<tr>';
echo '<td>' . $row['1'] . '</td>';\\ RICHIAMO TESTO
echo '</tr>';
echo '</table>';
}
?>
adesso mi visualizza il testo sotto ad ogni foto, io vorrei che venisse spostato sulla destra delle foto il testo, come posso fare?
<?php
include('config.php');
mysql_select_db("$db_name",$connessione);
$result= mysql_query("SELECT id_file,text FROM img_data");
if (!$result) {
exit ('<p> Errore mentre recuperavo i dati' . mysql_error() . '</p>');
}
while($row = mysql_fetch_row($result)){
echo '<img src="mostra.php?id=74" max width="200px" />'; \\RICHIAMO FOTO
echo '<table>';
echo '<tr>';
echo '<td>' . $row['1'] . '</td>';\\ RICHIAMO TESTO
echo '</tr>';
echo '</table>';
}
?>
adesso mi visualizza il testo sotto ad ogni foto, io vorrei che venisse spostato sulla destra delle foto il testo, come posso fare?