Buongiorno, io ho aggiunto l'ultimo utente registrato per necessità del cliente.
Funziona, chiedo a chi ne sa di più se è corretto... sono novella in php .
<?php require("db_connect.php");
// Inizio ultimo utente registrato
$sql="SELECT * FROM phpbb_users ORDER BY user_id DESC LIMIT 0 , 1";
$risultati=mysql_query($sql);
while($riga=mysql_fetch_array($risultati)) {
$username=$riga["username"];
echo "Ultimo utente registrato: <a href=\"http://{$_SERVER['HTTP_HOST']}/forum/profile.php?mode=viewprofile&u=$username\">$username</a><hr>";
}
// Fine ultimo utente registrato
// Inizio ultimi post
$sql="SELECT * FROM phpbb_topics inner join phpbb_posts_text on topic_first_post_id = post_id WHERE forum_id!=0 ORDER BY topic_id DESC LIMIT 10";
$risultati=mysql_query($sql);
while($riga=mysql_fetch_array($risultati)) {
$target=$riga["topic_title"];
$target1=$riga["topic_id"];
$visto=$riga["topic_views"];
$testo=$riga["post_text"];
$username=$riga["post_text"];
echo"<span><a href=\"http://{$_SERVER['HTTP_HOST']}/forum/viewtopic.php?t=$target1\" title=\"$target\">$target</a><br />
".truncate($testo,100)."<br /></span>";
}
// Fine ultimi post
?>
io ho appena affiancato ad OSC ... phpstats con il quale sto' monitorizzando le le chiavi di ricerca piu' usate... Ho effettuato diverse modifiche all'OSC aiutato dai vari amici nei forum e sto' notando un leggero incremento di visite .. inoltre ho fatto un microcircuito di banner e link exchange con altri amici con OSC che sta' fruttando .. se vuoi puoi partecipare ...