Development example: display "Hello, world"
|
|
<?php require('../../class/connect.php'); //Introduce database configuration files and public function files require('../../class/db_sql.php'); //Introduce database operation files $link=db_connect(); //Connect to MYSQL $empire=new mysqlquery(); //Declare database operation class $editor=1; //Declare the directory hierarchy $context='Hello, World!';
//Define display content db_close(); //Close the MYSQL link |
<?php if(!defined('InEmpireCMS')) { exit(); } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>Show<?=$context?>Example</title> </head> <body> <br> <br> <br> <table width="500" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC"> <tr> </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> |