📄 personalsettings.php
字号:
<html>
<head>
<title>Newsmail updation form</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p> </p><form name="newsmailform" method="post" action="update_customerinfo.php">
<table width="250" border="5" align="center" cellpadding="3">
<tr>
<td colspan="2" bgcolor="#dddddd">
<div align="center"><b>Change Information as desired</b></div>
</td>
</tr>
<?php
$host="";
$uname="root";
$pass="";
$database="books";
$connection= mysql_connect($host,$uname,$pass)
or die("Database connection failed ! <br>");
$result=mysql_select_db($database)
or die("Database could not be selected");
$query = "SELECT * from customerinfo where customerid='" .$customerid ."'";
$result = mysql_query($query);
if($row=mysql_fetch_array($result))
{
echo " <tr> ";
echo " <td> ";
echo " customerid";
echo " </td>\n";
echo " <td > ";
echo $row["customerid"];
echo " </td>\n";
echo " </tr>\n";
echo "<tr> \n";
echo " <td> ";
echo " Name";
echo " </td>\n";
echo " <td><b> ";
echo $row["name"];
echo " </b></td>\n";
echo " </tr>\n";
echo " <tr > ";
echo " <td > ";
echo " Address";
echo " </td>\n";
echo " <td> ";
echo " <textarea name=\"address\" cols=30 rows=4> ".$row["address"]."</textarea>";
echo " </td>\n";
echo " </tr>\n";
echo "<tr > \n";
echo " <td> ";
echo " Date Of Birth";
echo " </td>\n";
echo " <td><b> ";
echo $row["dob"];
echo " <b></td>\n";
echo " </tr>\n";
echo " <tr> ";
echo " <td colspan=\"2\" bgcolor=\"#dddddd\">\n ";
echo " <div align=\"center\"> \n";
echo " <input type=\"hidden\" name=\"customerid\" value=\"".$customerid."\">\n";
echo " <input type=\"submit\" name=\"Submit\" value=\"Submit\">\n";
echo " </div>\n";
echo " </td>";
echo "</tr>\n";
}?>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -