Danke - wo genau muss ich das eintragen?Pyramide hat geschrieben:Code: Alles auswählen
SELECT p.post_id, if(length(pt.post_subject)>0, pt.post_subject, t.topic_title) AS title FROM phpbb_posts p JOIN phpbb_posts_text pt ON (p.post_id = pt.post_id) JOIN phpbb_topics t ON (t.topic_id = p.topic_id) ORDER by p.post_time DESC
Die Suche ergab 2 Treffer
- 30.09.2003 09:47
- Forum: Coding & Technik
- Thema: TOP TEN Liste - extern
- Antworten: 5
- Zugriffe: 1113
?
- 30.09.2003 00:38
- Forum: Coding & Technik
- Thema: TOP TEN Liste - extern
- Antworten: 5
- Zugriffe: 1113
TOP TEN Liste - extern
Hi @ all,
habe ein kleines PHP-Script, welches die letzen zehn Posts aus der Datenbank holt.
<?
$MY_HOST = "localhost";
$MY_DB_NAME = "xxx";
$MY_USER = "xxx";
$MY_PASS = "xxx";
$MY_DB_TABLE = "phpbb_posts_text";
$num_view_message = 11;
$connect = mysql_connect($MY_HOST, $MY_USER, $MY_PASS);
if ...
habe ein kleines PHP-Script, welches die letzen zehn Posts aus der Datenbank holt.
<?
$MY_HOST = "localhost";
$MY_DB_NAME = "xxx";
$MY_USER = "xxx";
$MY_PASS = "xxx";
$MY_DB_TABLE = "phpbb_posts_text";
$num_view_message = 11;
$connect = mysql_connect($MY_HOST, $MY_USER, $MY_PASS);
if ...