1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
mysql_query("INSERT INTO news VALUES('', '" . $serie . "', '" . $titre . "', '" . $contenu . "', '" . time() . "')");
$dossier = mkdir("$serie");
$fichier = fopen("C:/Program Files/EasyPHP 2.0b1/www/AnimeOhayo/animes/$dossier/$titre.php", "a+");
fwrite($fichier, "<?php
mysql_connect("localhost", "root", "");
mysql_select_db("animeohayo");
$reponse = mysql_query("SELECT contenu FROM news WHERE titre = "$titre" ");
while ($donnees = mysql_fetch_array($reponse))
{
?>
<p>If you only see a white box, just refresh the page and it should be ok ;) <br/><br/><?php
echo $donnees['contenu'];?></p><?php
}
?>"); |
Partager