css屬性編寫順序:php
mysql基本操做(例子):css
//增長一個新列html
alter table t2 add d timestamp;
alter table infos add ex tinyint not null default ‘0′;mysql
//刪除列sql
alter table t2 drop column c;fetch
//重命名列ui
alter table t1 change a b integer;htm
//改變列的類型ip
alter table t1 change b b bigint not null;
alter table infos change list list tinyint not null default '0';utf-8
//重命名錶
alter table t1 rename t2;
mysqli基本使用(例子):
<?php
$mysqli = new mysqli("localhost", "my_user", "my_password", "world");
/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
$query = "SELECT Name, CountryCode FROM City ORDER by ID DESC LIMIT 50,5";
if ($result = $mysqli->query($query)) {
/* fetch object array */
while ($row = $result->fetch_row()) {
printf ("%s (%s)\n", $row[0], $row[1]);
}
/* free result set */
$result->close();
}
/* close connection */
$mysqli->close();
?>
html細節:
<html>
<head>
<title>新聞查看與管理</title>
</head>
<frameset rows="20%,*">
<frame name="part1" src="part1.php"/>
<frameset cols="25%,*">
<frame name="part2" src="part2.php"/>
<frame name="part3" src="part3.php"/>
</frameset>
</frameset>
</html>