Hi all, this is my first Php/Mysql day and I'm italian but I think this forum is great (even if difficult as I have to translate...)
this is something I'm working on for my site (I did'n not translate the italian words after // ... you will for sure understand...)
<?
// Connessione al DB
mysql_pconnect("frontera.be","fantaxxxx","password");
mysql_select_db("fantalimbo");
// fai la richiesta alla tabella "squadre"
$result = mysql_query("select * from squadre");
while($r=mysql_fetch_array($result))
{
$nome_squadra=$r["nome_squadra"];
$giocatore_1=$r["giocatore_1"];
$giocatore_2=$r["giocatore_2"];
$giocatore_3=$r["giocatore_3"];
$ora_invio=$r["ora_invio"];
// ecco il printout in una tabella
echo ("<table border = '0' width = '100%' align='center'>");
echo "<tr>$nome_squadra</tr> <tr>$giocatore_1</tr> <tr>$giocatore_2</tr> <tr>$ora_invio</tr>";
}
echo "</table>";
?>
and this is how it come on the web page....
lelli kelly
zoff
gentile
20021215151722
I need to format the date20021215151722 into a HH:MM dd:mm:yy format...
how can I do it in my php page ???
thanx
Roberto