Gestionnaire de fichiers - Editer - /home/webapp68.cm.in.th/u68319090015/app/news_add.php
Arrière
<?php $headlines=$_POST["headlines"]; $content=$_POST["content"]; $uid_login=$_SESSION["uid_login"]; $sql = "INSERT INTO news (nid, headlines, content, date_add, uid) VALUES (NULL, '$headlines', '$content', current_timestamp(),'$uid_login')"; if (mysqli_query($conn, $sql)) { echo "New record created successfully"; echo"<meta http-equiv=\"refresh\" content=\"1;url=?page=news\">"; } else { echo "Error: " . $sql . "<br>" . mysqli_error($conn); } mysqli_close($conn); ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Génération de la page: 0.07 |
proxy
|
phpinfo
|
Réglages