[請益] PHP如何與MYSQL連接
我寫了一個會員註冊的程式,可是我不知道註冊之後資料要連到MY SQL的程式
要如何寫?買了一本書叫「PHP5與MYSQL5入門學習指南」可是沒有教如何連接SQL?
以下是我寫的程式,請教各位大大接下來該作連接?還是市面上有什麼書可以買?還有
我要如何測試?謝謝。
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "" rel="nofollow">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="" rel="nofollow">http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標題文件</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<table width="400" border="1" align="center" cellpadding="1" cellspacing="1">
<tr>
<td colspan="2" class="title_font"><strong>帳號註冊</strong></td>
</tr>
<tr>
<td width="85" class="title_font">帳號</td>
<td width="302"><input type="text" name="Account" id="Account" /></td>
</tr>
<tr>
<td class="title_font">密碼</td>
<td> </td>
</tr>
<tr>
<td class="title_font"> 姓名</td>
<td><input type="text" name="Name" id="Name" /></td>
</tr>
<tr>
<td class="title_font"> 匿名</td>
<td><input type="text" name="" id="anonymous" /></td>
</tr>
<tr>
<td class="title_font">性別</td>
<td><label>
男
<input name="Sex" type="radio" id="Sex" />
女
<input name="Sex" type="radio" id="Sex2" />
</label></td>
</tr>
<tr>
<td class="title_font">信箱</td>
<td><input type="text" name="Email" id="Email" /></td>
</tr>
<tr>
<td class="title_font">地址</td>
<td><input type="text" name="Address" id="Address" /></td>
</tr>
<tr>
<td class="title_font">電話</td>
<td><input type="text" name="Phone" id="Phone" /></td>
</tr>
<tr>
<td class="title_font"> </td>
<td><div align="right">
<input name="Auth" type="hidden" id="Auth" value="0" />
<input type="submit" name="button" id="button" value="註冊" />
</div></td>
</tr>
</table>
</form>
</body>
</html>
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.32.90.161
→
03/18 01:33, , 1F
03/18 01:33, 1F
→
03/18 01:35, , 2F
03/18 01:35, 2F
→
03/18 01:37, , 3F
03/18 01:37, 3F
→
03/18 01:39, , 4F
03/18 01:39, 4F
推
03/18 02:34, , 5F
03/18 02:34, 5F
推
03/18 08:35, , 6F
03/18 08:35, 6F
→
03/18 11:14, , 7F
03/18 11:14, 7F
→
03/18 12:32, , 8F
03/18 12:32, 8F
→
03/18 12:32, , 9F
03/18 12:32, 9F
推
03/18 12:50, , 10F
03/18 12:50, 10F
→
03/18 12:54, , 11F
03/18 12:54, 11F
→
03/18 13:33, , 12F
03/18 13:33, 12F
→
03/18 14:17, , 13F
03/18 14:17, 13F
→
03/18 14:18, , 14F
03/18 14:18, 14F
噓
03/18 15:12, , 15F
03/18 15:12, 15F
推
03/18 15:36, , 16F
03/18 15:36, 16F
→
03/18 15:38, , 17F
03/18 15:38, 17F
→
03/18 15:40, , 18F
03/18 15:40, 18F
→
03/18 16:11, , 19F
03/18 16:11, 19F
→
03/18 16:12, , 20F
03/18 16:12, 20F
推
03/18 18:00, , 21F
03/18 18:00, 21F
→
03/18 21:55, , 22F
03/18 21:55, 22F
→
03/19 01:25, , 23F
03/19 01:25, 23F
噓
03/19 02:13, , 24F
03/19 02:13, 24F
→
03/19 02:14, , 25F
03/19 02:14, 25F
噓
03/19 03:00, , 26F
03/19 03:00, 26F
噓
03/19 20:01, , 27F
03/19 20:01, 27F
→
03/20 02:18, , 28F
03/20 02:18, 28F
噓
03/20 23:52, , 29F
03/20 23:52, 29F
→
03/20 23:53, , 30F
03/20 23:53, 30F
噓
03/21 11:35, , 31F
03/21 11:35, 31F
噓
03/22 16:28, , 32F
03/22 16:28, 32F
→
03/22 16:29, , 33F
03/22 16:29, 33F
→
03/22 16:30, , 34F
03/22 16:30, 34F
→
03/22 16:30, , 35F
03/22 16:30, 35F