24 lines
No EOL
471 B
PHP
24 lines
No EOL
471 B
PHP
<?php
|
|
|
|
include("./access.php");
|
|
|
|
if(isset($_POST['cle'])&&($_POST['cle']!='')&&($_POST['nom']!=''))
|
|
{
|
|
|
|
$queradd = "UPDATE themes SET
|
|
nom='".addslashes($_POST['nom'])."'
|
|
WHERE cle='".$_POST['cle']."'";
|
|
$resultadd = mysqli_query($connect,$queradd);
|
|
|
|
|
|
}
|
|
elseif($_POST['nom']!='')
|
|
{
|
|
|
|
$queradd = "INSERT INTO themes SET
|
|
nom='".addslashes($_POST['nom'])."'";
|
|
$resultadd = mysqli_query($connect,$queradd);
|
|
}
|
|
|
|
header("location: index.php");
|
|
?>
|