Commit f0f3b8ed by Roy Junedi Simamora

perubahan pada edit dan form_login

parent cdbfe746
...@@ -34,7 +34,7 @@ while($d=mysql_fetch_array($det)){ ...@@ -34,7 +34,7 @@ while($d=mysql_fetch_array($det)){
<td> Kategori </td> <td> Kategori </td>
<td> <td>
<input type="radio" name="kategori" value="1"> Makanan <br/> <input type="radio" name="kategori" value="1"> Makanan <br/>
<input type="radio" name="kategori" value="3"> Minuman <input type="radio" name="kategori" value="2"> Minuman
</td> </td>
</tr> </tr>
<tr> <tr>
......
...@@ -9,6 +9,8 @@ if(isset($_GET['do_login'])){ ...@@ -9,6 +9,8 @@ if(isset($_GET['do_login'])){
$_SESSION['login_error'] = TRUE; $_SESSION['login_error'] = TRUE;
}else{ }else{
$_SESSION['user'] = TRUE; $_SESSION['user'] = TRUE;
$row = mysql_fetch_assoc($resUsr);
$_SESSION['id_member'] = $row['id_member'];
header("location:index.php"); header("location:index.php");
} }
$log =getAdmin($_POST['username'],$_POST['password']); $log =getAdmin($_POST['username'],$_POST['password']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment