_Blank en php

Résolu
Sinsitrus Messages postés 849 Date d'inscription samedi 11 juin 2005 Statut Membre Dernière intervention 21 août 2015 - 18 janv. 2008 à 01:26
Sinsitrus Messages postés 849 Date d'inscription samedi 11 juin 2005 Statut Membre Dernière intervention 21 août 2015 - 18 janv. 2008 à 14:40
Salut a tous !

J'ai recuperer ce code a quelque part et il est pour oi très utile. Seulement je rencntre deux problèmes :

<?php
define('IN_PHPBB', TRUE);
$phpbb_root_path = 'Forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
$user->setup('', $forum_data['forum_style']);
$sql = 'SELECT p.*, t.*, u.user_id, u.username FROM ' . POSTS_TABLE . ' p JOIN ' . TOPICS_TABLE . ' t JOIN ' . USERS_TABLE . ' u
ON p.topic_id = t.topic_id
AND  u.user_id = p.poster_id
ORDER BY p.post_id DESC LIMIT 15';
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
{ echo '[' . $phpbb_root_path . 'viewtopic.php?t=' . $row['topic_id'] . ' ' . $row['topic_title'] . ']
';}
?>

Le premier est que je veux que cette ligne ouvre le lien dans une nouvelle fenêtre :
[' . $phpbb_root_path . 'viewtopic.php?t=' . $row['topic_id'] . ' ' . $row['topic_title'] . ']

Et le second est que les lignes s'affiche comme ca :
Débat de la vérité camouflée(Débat de la vérité camouflé)

Pouvez vous m'aider svp !
Merci à tous !

4 réponses

malik7934 Messages postés 1154 Date d'inscription mardi 9 septembre 2003 Statut Membre Dernière intervention 15 août 2009 17
18 janv. 2008 à 14:29
Oui, je me suis trompé, c'est utf8_decode qu'il faut utiliser

*****
noisy communication - wherever, be everywhere!
3
malik7934 Messages postés 1154 Date d'inscription mardi 9 septembre 2003 Statut Membre Dernière intervention 15 août 2009 17
18 janv. 2008 à 09:49
<?php
define('IN_PHPBB', TRUE);
$phpbb_root_path = 'Forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
$user->setup('', $forum_data['forum_style']);
$sql = 'SELECT p.*, t.*, u.user_id, u.username FROM ' . POSTS_TABLE . ' p JOIN ' . TOPICS_TABLE . ' t JOIN ' . USERS_TABLE . ' u
ON p.topic_id = t.topic_id
AND  u.user_id = p.poster_id
ORDER BY p.post_id DESC LIMIT 15';
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
{
echo '[' . $phpbb_root_path . 'viewtopic.php?t=' .
$row['topic_id'] . ' ' . utf8_encode($row['topic_title']) . ']

';}
?>







*****
noisy communication - wherever, be everywhere!
0
Sinsitrus Messages postés 849 Date d'inscription samedi 11 juin 2005 Statut Membre Dernière intervention 21 août 2015
18 janv. 2008 à 13:59
Merci beaucoup pour ton aide...
Il s'ouvre dans une nouvelle fenetre oui, mais :

Débat de la vérité camouflée

voilà ce qu'il me dit :/

Mon site
http://www.fr.tariqannour.net/index.php
0
Sinsitrus Messages postés 849 Date d'inscription samedi 11 juin 2005 Statut Membre Dernière intervention 21 août 2015
18 janv. 2008 à 14:40
Merci infiniment ^^
0
Rejoignez-nous