1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
if(isset($_GET['demandemodcritanime']))
{
$demandeserie=mysql_real_escape_string($_GET['titre']);
$idserie=mysql_real_escape_string($_GET['idserie']);
$demandeurtest=mysql_real_escape_string($_GET['Nom']);
$type='critiqueanime';
$demandeur=$_SESSION['Nom'];
if($demandeur==$demandeurtest)
{
//La date actuelle:
$dateactu=date("U");
$date=date("Y-m-d H:i:s" , $dateactu );
$type='critiquedvd';
$sql="INSERT INTO `demandecritique` (`Nom` , `type` , `demandeur` , `date` , `statut` , `idcrit`) VALUES ('$demandeserie' , '$type' , '$demandeur' , '$date' , '4' , '$idserie');";
mysql_query($sql);
echo
' <div class="cadreform">
<div class="cadreformtop">
Demande pour modifier une critique anime:
</div>
<div class="cadreformcenter">
<table>
<tr>
<td>
<div class="patientez">Patientez...</div>
</td>
</tr>
</table>
</div>
<div class="cadreformbottom">
</div>
</div>
';
} |
Partager