
<?php
$_CONFIG = array();
$exe = mysql_query('SELECT * FROM config');
while ($ligne = mysql_fetch_assoc($exe))
{
$_CONFIG[$ligne['config_name']] = $ligne['config_value'];
}
$exe = mysql_query('SELECT COUNT(*) as total FROM posts');
$ligne = mysql_fetch_assoc($exe);
echo "Il y a un total de {$row['total']} posts dans ce forum.";
?>
<?php
$_CONFIG = array();
$exe = mysql_query('SELECT config_name, config_value FROM config');
while ($ligne = mysql_fetch_assoc($exe))
{
$_CONFIG[$ligne['config_name']] = $ligne['config_value'];
}
echo "Il y a un total de { $_CONFIG['total_forum_posts']} posts dans ce forum.";
?>
<?php
$_CONFIG = array();
$exe = mysql_query('SELECT config_name, config_value, total_forum_posts FROM config');
while ($ligne = mysql_fetch_assoc($exe))
{
$_CONFIG[$ligne['config_name']] = $ligne['config_value'];
$_CONFIG[$ligne['total_forum_posts']] = $ligne['total_forum_posts'];
}
echo "Il y a un total de { $_CONFIG['total_forum_posts']} posts dans ce forum.";
?>
<?php
$_CONFIG = array();
$exe = mysql_query('SELECT config_name, config_value FROM config');
while ($ligne = mysql_fetch_assoc($exe))
{
$_CONFIG[$ligne['config_name']] = $ligne['config_value'];
}
echo "Il y a un total de { $_CONFIG['total_forum_posts']} posts dans ce forum.";
?>
^^
Nous - Plan du site - Informations légale - Contact - © Graphiks.net