|
|
səhifə | 3/3 | tarix | 28.11.2022 | ölçüsü | 54 Kb. | | #70913 |
| dep-materiallar-varaq
".$row1['mavzu']."
".$row1['mualif']."
";
}}}
mysqli_close($dbc);
?>
$q = intval($_GET['q']);
include "Admin\admin\mysqli_connect.php";
if (!$dbc) {
die('Could not connect: ' . mysqli_error($dbc));
}
mysqli_select_db($dbc,"ajax_demo");
$sql="SELECT * FROM video WHERE id = '".$q."'";
$result = mysqli_query($dbc,$sql);
while($row = mysqli_fetch_array($result)) {
print" ";
}
mysqli_close($dbc);
?>
if($_SERVER['REQUEST_METHOD']=="POST"){
$AdminName=$_POST['AdminName'];
$AdminParol=$_POST['AdminParol'];
include 'mysqli_connect.php';
$query='SELECT * FROM admin';
if($r=mysqli_query($dbc,$query)){
while($row=mysqli_fetch_array($r)){
setcookie('AdminParoll', $row['AdminParoll'], time()+116);
if($_COOKIE['AdminParoll']==$AdminParol) {
if($row['AdminName']==$AdminName && $_COOKIE['AdminParoll']==$AdminParol){
header('Location:index1.php');
}
else{
header('location:index.php');
}
}else{ header('Location:index.php');}
}
}
}
?>
$dbc=mysqli_connect('localhost', 'root', '', 'videozone');
Dostları ilə paylaş: |
|
|