gehe zu (Forum auswahl)
Verfasst: 13.09.2003 00:31
Ich hab eine neue seite eingebaut und würde gerne ganz unten das auswahlmenu gehezu: Forum auswählen hinzufügen hab ihrne idee wie ich das mache?
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Code: Alles auswählen
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
error_reporting(E_ALL);
$conn = @mysql_connect("localhost", "user", "pass") OR die(mysql_error());
mysql_select_db("tabelle") OR die(mysql_error());
$sql = "SELECT
user_id,
username,
user_planet,
user_geb,
date_format(user_geb,'%d.%m.%Y') AS datum
FROM
board_users
WHERE
date_format(user_geb,'%m%d') >= date_format(curdate(),'%m%d')
ORDER BY
user_geb DESC
LIMIT 20";
$result = mysql_query($sql) OR die(mysql_error());
mysql_close($conn);
?>
<table width="44%" border="0" align="center">
<tr>
<td width="35" height="24"><div align="center"><strong>#</strong></div></td>
<td width="108" height="24"><div align="center"><strong>Benutzername</strong></div></td>
<td width="143" height="24"><div align="center"><strong>Planet</strong></div></td>
<td width="123" height="24"><div align="center"><strong>Geburtstagsdatum</strong></div></td>
</tr>
<?php
while($row = mysql_fetch_assoc($result))
{
?>
<tr>
<td width="35" height="24" align="center"><?php echo $row['user_id']. "\n";?> </td>
<td width="108" height="24" align="center"><?php echo $row['username']. "\n";?></td>
<td width="143" height="24" align="center"><?php echo $row['user_planet']. "\n";?></td>
<td width="123" height="24" align="center"><?php echo $row['datum']. "\n";?></td>
</tr>
<?php
}
?>
</table>
<?php
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
Code: Alles auswählen
$conn = @mysql_connect("localhost", "user", "pass") OR die(mysql_error());
mysql_select_db("tabelle") OR die(mysql_error());
mysql_close($conn);