Page 526 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 526
<table border=0 width=center align=center>
<tr align=center>
<td></td>
<td>payment complete</td>
<td></td>
</tr>
<tr align= center>
<td></td>
<td><font size =200><a href="../index.php">back</a></font></td><!--본 페이지로
이동-->
</td></td>
</tr>
</table>
</body>
</html>
[태그 값을 데이터베이스에 출력시켜 주는 프로그램]
데이터베이스의 모든 값들은 배열로 이루어져 있다. 다음 소스는 태그의 값을 데이터베이스에
배열 값으로 출력시켜 주는 프로그램이다.
<?php
include "user.php";
$no= mysql_query("select count(*) from Userdb", $connect);
$select = "select * from usertable;";
$query = mysql_query( $select, $connect);
?>
<style type = "text/css">
table{
width:200%;
border-collapse: collapse;
}
th, tr, td{
border: 1px solid #bcbcbc;
}
</style><!--표 선 그리기-->
<table width ="500" border ="1">
<tr align=center>
- 519 -