本文整理匯總了PHP中Head::getInfo方法的典型用法代碼示例。如果您正苦於以下問題:PHP Head::getInfo方法的具體用法?PHP Head::getInfo怎麽用?PHP Head::getInfo使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Head
的用法示例。
在下文中一共展示了Head::getInfo方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Head
echo $Name;
?>
</title>
<link rel="stylesheet" href="main.css" type="text/css" />
<script src='js/jq.js' type='text/javascript'></script>
<script src='js/function.js' type='text/javascript' ></script>
</head>
<body>
<?php
include "header.php";
include "sidebar.php";
?>
<div id="center">
<?php
$goBack = "<a href='index.php'>Back</a>";
include_once "class.inc.php";
if (isset($_GET['id'])) {
$h = new Head();
$hinfo = $h->getInfo($_GET['id']);
echo "<center>User Info<br><table><tr><td><b>Name </b></td><td> {$hinfo['name']}</td></tr><tr><td><b>Phone </b></td><td> {$hinfo['phone']}</td></tr><tr><td><b>Level </b></td><td> {$hinfo['level']}</td></tr></table></center>";
} else {
echo "Please select a User<br>" . $goBack;
}
?>
</div>
<?php
include "footer.php";
?>
</body>
</html>