%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/jalalj2hb/www/
Upload File :
Create Path :
Current File : /home/jalalj2hb/www/save_school.php

<?php
$link = mysqli_connect("127.0.0.1", "freetest_app_ftm", "app_ftm", "freetest_ftm");


if (!$link) {
    echo "Error: Unable to connect to MySQL." . PHP_EOL;
      exit;
}


if (!empty($_POST)) {	
	$nom=$link->real_escape_string($_POST['nom']);
	$agrement = $link->real_escape_string($_POST['agrement']);
	$proprietaire=$link->real_escape_string($_POST['proprietaire']);
	$address = $link->real_escape_string($_POST['address']);
	$telphone=$link->real_escape_string($_POST['telphone']);
	$password=$link->real_escape_string($_POST['password']);
	$email=$link->real_escape_string($_POST['email']);
	$date_creation=date("Y-m-d"); // date now 
	$date_d=$date_creation;
	$date_f=date('Y-m-d', strtotime($date_d. ' + 15 day'));;
	$sql="INSERT INTO `ecoles`(`nom_ecole`, `N_agr`, `logo`, `ville_id`, `adresse`, `fix`, `tel`, `email`, `password`, `privilege`, `date_creation`) VALUES ('$nom','$agrement','test',30,'$address','050100000','$telphone','$email','$password','user','$date_creation')";
	$link->query($sql);
	$ecole_id = $link->insert_id;
	$sql2="INSERT INTO `abonnement`(`ecole_id`, `date_debut`, `date_fin`, `prix`, `commentaire`, `date_creation`) VALUES ('$ecole_id','$date_creation','$date_f',0,'auto','$date_creation')";
	$link->query($sql2);


echo(mysqli_error($link));

}



mysqli_close($link);

?>

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>merci,</title>
</head>
<body>
	<style>
		*{
			padding: 0;margin: 0;
		}
		body{
			background: #D3E7C0; 
			width: 100%;
			box-sizing: content-box;
			line-height:3.5em;


		}
		.container{
			width: 35%;
			min-width: 600px;
			/*height: 400px;:;*/
			margin: 100px auto ;
			background-color: #39AEA9;
			text-align: center;
			padding:35px 5px;
			color: #5B5151;
		}
		.logo{
			margin: 50px auto ;
			width: 400px;


		}
		.logo img{
			width: 100%;
		}
		.code{
			color: #A2D5AB;
			padding: 20px;
		}
		p{
		 font-size: 2em;
		 overflow: hidden;
		 text-align: center;
		}
		.image_store{
			/*float: left;*/
			width: 60%;
			/*height: 20px;*/
			/*border:1px solid red;*/
			margin: 10px auto;
			overflow: hidden;
		}
		.image_store img{
			width: 100%;
		}

		.code{
			border: 4px solid #D3E7C0;
			display: inline-block;
			font: 3em;
			margin: 16px;
		}
	</style>
			<div class="logo">
			<img src="logo.png" alt="">
		</div>

	<div class="container">
				<p  class="right">
				    
شكرا على لاشتراككم في فري تيست موبيل لمعرفة المزيد عن كيفية عمل منصة فري تيست موبيل يمكنكم مشاهدة الفيديوهات على اليوتوب من الرابط اسفله
			</p>
		<p>
            <a href="https://www.youtube.com/embed/6w5bU1wTkis?list=PLkxSJr1SVbqb8APqdyiZwYSkpGTQA7T63" class="btn btn-success " >الفبدبوهات اليوتوب </a>
		</p>
		
	</div>
</body>
</html>

Zerion Mini Shell 1.0