Allora, coem giusto che fosse ho fatto un giro in rete ed ho capito come reuperare e stampare i dati prelevati da una tebella del mio db
[PHP]
<?
$conn = mysql_connect("localhost", "root", "123456") or die(mysql_error());
mysql_select_db("casale", $conn) or die(mysql_error());
$sql = "SELECT titolo, menu FROM eventi";
$result = mysql_query($sql);
while ($array = mysql_fetch_array($result))
{
print "CODICE Prod: ".$array['titolo']." - ";
print "DESCRIZIONE Prod: ".$array['menu']." - ";
}
?>/PHP]
cosi però li stampo in sequenza senza un ordine preciso....
io vorrei inserire i risultati in una tabella. Girando in rete ho trovato l'impaginazione di molti record..
Potreste aiutarmi?
questa e la tabella
Codice PHP:
<table width="180" border="0" cellspacing="2" cellpadding="0">
<tr height="19">
<td width="9" height="19"></td>
<td width="165" height="19">[b]Eventi speciali[img]images/stelle3.gif[/img][/b]</td>
</tr>
<tr height="8">
<td valign="bottom" width="9" height="8"></td>
<td valign="bottom" width="165" height="8"></td>
</tr>
<tr height="14">
<td valign="top" width="9" height="14">[img]images/pointer.gif[/img]</td>
<td class="tex_piccolo" valign="top" width="165" height="14">[url="link_al_file"]titolo del menu[/url]</td>
</tr>
</table>
Grazie