本文整理汇总了PHP中Family::print_all_families方法的典型用法代码示例。如果您正苦于以下问题:PHP Family::print_all_families方法的具体用法?PHP Family::print_all_families怎么用?PHP Family::print_all_families使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Family
的用法示例。
在下文中一共展示了Family::print_all_families方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Family
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Communities</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="main">
<div id="allfamilies">
<h3>ALL Families</h3>
<?php
# Instantiate class Family
$family = new Family();
# We print all the families
$family->print_all_families($connection);
?>
</div>
<!-- this is a block that shows all the societies -->
<div id="allsocieties">
<h3>ALL Societies</h3>
<?php
# Instantiate class Society
$society = new Society();
# We print the societies
$society->print_all_society($connection);
?>
</div>
<!-- Get details about society -->