<?php
 session_start
();
 if (
session_is_registered("valid_user")&&session_is_registered("password"))
 {
 
$Username $valid_user;
 
$Password $password;
include(
"../include/FunctionDB.php");
ConnectDB();
$sql "Select * From user_tb Where Username='$Username'";
$result mysql_query($sql) or die(" Error".mysql_error());
$rs1 mysql_fetch_array($result);
$Username $rs1[Username];
$sql1 "Select * From personal_tb Where Username='$Username'";
$result1 mysql_query($sql1) or die(" Error".mysql_error());
$rs mysql_fetch_array($result1);
?>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td><div align="center"><strong><font size="6" face="Geneva, Arial, Helvetica, sans-serif"><a href="InfomationMenu.php">ประชาสัมพันธ</a></font><font size="6">์</font></strong></div></td>
  </tr>
  <tr>
    <td><table width="100%" height="180" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td> <table width="82%" border="0" align="center" cellpadding="0" cellspacing="1">
              <form action="Update.php" method="post">
                <tr bgcolor="#AFD2F5"> 
                  <td colspan="3"> <div align="center"><font size="4" face="Tahoma"><strong>เพิ่ม 
                      ระดับการใช้งาน </strong></font></div></td>
                </tr>
                <tr bgcolor="#EEEEEE"> 
                  <td width="26%" height="24"> <div align="center"><font size="2" face="Tahoma">Permision</font></div></td>
                  <td width="2%">&nbsp;</td>
                  <td width="72%"><input name="Permision" type="text" id="Permision"></td>
                </tr>
                <tr bgcolor="#EEEEEE"> 
                  <td bgcolor="#EEEEEE"><div align="center"><font size="2" face="Tahoma">Url</font></div></td>
                  <td>&nbsp;</td>
                  <td bgcolor="#EEEEEE"><font color="#003366" size="2" face="Tahoma">
                    <input name="Url" type="text" id="Url">
                    </font></td>
                </tr>
                <tr bgcolor="#EEEEEE"> 
                  <td><div align="center"><font size="2" face="Tahoma">Description</font></div></td>
                  <td>&nbsp;</td>
                  <td><input name="Description" type="text" id="Description"></td>
                </tr>
                <tr bgcolor="#AFD2F5"> 
                  <td colspan="3"> <div align="center"> 
                      <input type="submit" name="Submit3" value="    เพิ่ม   ">
                      &nbsp; 
                      <input type="reset" name="Submit" value="   เริ่มใหม่   ">
                    </div></td>
                </tr>
              </form>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>