개발 예: "Hello, world" 표시
|
|
<?php require('../../class/connect.php'); //데이터베이스 구성 파일 및 공용 함수 파일 소개 require('../../class/db_sql.php'); //데이터베이스 작업 파일 소개 $link=db_connect(); //MYSQL에 연결 $empire=new mysqlquery(); //데이터베이스 작업 클래스 선언 $editor=1; //디렉토리 계층 선언 $context='Hello, World!';
//표시 콘텐츠 정의 db_close(); //MYSQL 링크 닫기 |
<?php if(!define('InEmpireCMS')) { 종료(); } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>显示<?=$context?>例子</title> </head> <body> <br> <br> <br> <테이블 width="500" border="0" 정렬="가운데" cellpadding="3" cellpacing="1" bgcolor="#CCCCCC"> <tr> <td height="25"><strong>显示内容为如下:</strong></td> </tr> <tr> <td height="60" bgcolor="#FFFFFF"> <div align="center"><strong><font color="#FF0000" size="5"><?=$context?></font></strong></div></td> </tr> </table> </body> </html> |
