include("mysql_compat.php");
$db=mysql_connect('o2000', 'jmevel', 'jmevel01');
mysql_select_db("tournois_tennis_v2", $db);
$s='\'';
?>
pour consulter la base
include("mysql_compat.php");
$titre="Bienvenue sur la FAQ"; include("../enTete.php");
print "| RUBRIQUE : $name pour le sujet de l'article : $sujet_art |
";
$sql="SELECT * FROM kb WHERE id_art=$id_art";
$result=mysql_query($sql,$db);
while ($item = mysql_fetch_array($result))
{
$title = $item["title"];
$content = $item["text"];
$date = $item["date"];
#$content=htmlescape($content);
print "";
print "
";
print "
";
print "| Information : $title ($date) | |
";
print "
";
print "";
//print "| Réponse du $date |
";
print "| " . nl2br($content) . " |
";
}
#print "| " . $content . " |
";
print "
";
include("../piedDePage.php");
?>
include("mysql_compat.php");
function htmlescape ($input) {
$output = '';
while(1) {
if($input == '')
break;
$ch = substr($input,0,1);
$templen = strlen($input) - 1;
$input = substr($input,1,$templen);
if($ch == "\\xA9") $ch = '©';
if($ch == "\\xA8") $ch = '®';
#if($ch == '&') $ch = '&';
if($ch == '"') $ch = '"';
if($ch == '<') $ch = '<';
if($ch == '>') $ch = '>';
#if(ord($ch) > 126) $ch = '';
#if(ord($ch) < 9) $ch = '';
#if(ord($ch) == 11) $ch = '';
#if(ord($ch) > 14 && ord($ch) < 32) $ch = '';
$output = $output . $ch;
}
return($output);
}
/**********************************************************************/
?>