DRACULA1
16/03/2007, 12h41
Bonjour tout le monde voila mon probleme est simple, l'erreur doit pas etre enorme mais bon je la vois pas chui aveugle lol.Je veut afficher toute les entrer sql d'une table dans un tableau, le probleme ses qu'il ne me resort que la premiere entrer. voicie le code de mon template et le code de mon fichier PHP.
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle]</title>
</head>
<body>
$header
$navbar
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="4">Liste Des Requests En Cour...</td>
</tr>
<tr>
<td class="thead" width="25%">Titre</td>
<td class="thead">Description</td>
<td class="thead" width="20%">Membre Demandeur</td>
<td class="thead" width="10%">Date</td>
</tr>
<tr>
<td class="thead">$titre</td>
<td class="thead">$description</td>
<td class="thead">$membre</td>
<td class="thead">$date</td>
</tr>
</table>
$footer
</body>
</html>
<?php
// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// ##################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'liste_request');
// #################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();
// get special data templates from the datastore
$specialtemplates = array();
// pre-cache templates used by all actions
$globaltemplates = array(
'liste_request',
);
// pre-cache templates used by specific actions
$actiontemplates = array();
// ########################## REQUIRE BACK-END ############################
require_once('./global.php');
if (!$vbulletin->userinfo['userid'])
{
print_no_permission();
}
// ################################################## ######################
// ######################### START MAIN SCRIPT ############################
// ################################################## ######################
$request1 = $db->query("SELECT * FROM " . TABLE_PREFIX . "request ORDER BY date ASC");
while ($request = $db->fetch_array($request1))
{
$titre = $request['titre'];
$description = $request['description'];
$membre = $request['pseudo'];
$date = $request['date'];
}
$navbits = array();
$navbits[$parent] = 'Liste Des Requests En Cour';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('liste_request') . '");');
?>
Voila merci d'avance pour votre aide :)
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle]</title>
</head>
<body>
$header
$navbar
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="4">Liste Des Requests En Cour...</td>
</tr>
<tr>
<td class="thead" width="25%">Titre</td>
<td class="thead">Description</td>
<td class="thead" width="20%">Membre Demandeur</td>
<td class="thead" width="10%">Date</td>
</tr>
<tr>
<td class="thead">$titre</td>
<td class="thead">$description</td>
<td class="thead">$membre</td>
<td class="thead">$date</td>
</tr>
</table>
$footer
</body>
</html>
<?php
// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// ##################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'liste_request');
// #################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();
// get special data templates from the datastore
$specialtemplates = array();
// pre-cache templates used by all actions
$globaltemplates = array(
'liste_request',
);
// pre-cache templates used by specific actions
$actiontemplates = array();
// ########################## REQUIRE BACK-END ############################
require_once('./global.php');
if (!$vbulletin->userinfo['userid'])
{
print_no_permission();
}
// ################################################## ######################
// ######################### START MAIN SCRIPT ############################
// ################################################## ######################
$request1 = $db->query("SELECT * FROM " . TABLE_PREFIX . "request ORDER BY date ASC");
while ($request = $db->fetch_array($request1))
{
$titre = $request['titre'];
$description = $request['description'];
$membre = $request['pseudo'];
$date = $request['date'];
}
$navbits = array();
$navbits[$parent] = 'Liste Des Requests En Cour';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('liste_request') . '");');
?>
Voila merci d'avance pour votre aide :)