<?php include"config.php";//session_start();//初始化变weightsession$name=$_POST["name"]; $password=$_POST["password"];$sql="이름='{$name}' 및 비밀번호 ='{$password}'인 관리자에서 * 선택""; echo $sql;$smt=$pdo->prepare($sql);$smt->execute();$row=$smt->fetch();if($row){ $_SESSION['name ']=$row['이름']; echo"<script>alert('발행완료')</script>"; echo"<script>location='index.php'</script>"; }else{ echo"<script>alert('cuwu')</script>"; //echo"<script>location='denglu.php'</script>";}?>