$host_mysql='localhost'; $user_mysql='root'; $pass_mysql='morvan58'; $bd_mysql='chat'; $table='jweb_chat'; ?>
$ide= MYSQL_CONNECT($host_mysql,$user_mysql,$pass_mysql); mysql_select_db("$bd_mysql"); $query = "SELECT * FROM $table"; $result = mysql_query($query,$ide); $taille = "1"; $datime = date("H:i"); $message2 = htmlentities($txt); $message3 = nl2br($message2); $formatage=$couleur; $formatage.=$taille; $formatage.=$attrib; $tmp=microtime();$tmp2=explode(" ",$tmp);$tmp3=$tmp2[1]; if ($txt != "" and $pseudo != "") { $query = "INSERT INTO $table VALUES ('0','$pseudo','$message3','$datime','$formatage','$tmp3')"; $result = mysql_query($query,$ide); } MYSQL_CLOSE(); ?>