摘要: 文件目录:--index.php--php--data_info.phpindex.php这里要require_once类所在的php文件<?phprequire_once('./php/data_info.php'); $oneData=new user; $oneData->setName("username"); $oneData->setPassword("password"); echo $oneData->getName(); echo $oneData->getPassword();?>d 阅读全文
posted @ 2011-05-18 16:05 xngeer 阅读(299) 评论(1) 推荐(0)
摘要: @mysql_connect("localhost","username","password") or die("无法连接数据库"); @mysql_select_db("databasename") or die("未找到数据库"); getConnection(); $query="select definition,accession,gi from birds_nucleotide order by definition limit 0,200" 阅读全文
posted @ 2011-05-18 14:40 xngeer 阅读(238) 评论(0) 推荐(0)
摘要: 只有在同目录下的php文件,可用require_once("filename.php");在不同目录下的php文件,用相对所在目录的路径require_once('./php/data_fns.php');require_once('../data_fns.php'); 阅读全文
posted @ 2011-05-18 14:34 xngeer 阅读(196) 评论(0) 推荐(0)
摘要: <head> <link rel="stylesheet" type="text/css" href="style.css" /></head> 阅读全文
posted @ 2011-05-18 14:27 xngeer 阅读(802) 评论(0) 推荐(0)