本文整理汇总了PHP中Club::fetchdets方法的典型用法代码示例。如果您正苦于以下问题:PHP Club::fetchdets方法的具体用法?PHP Club::fetchdets怎么用?PHP Club::fetchdets使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Club
的用法示例。
在下文中一共展示了Club::fetchdets方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: strlen
<th>Abbrev</th>
<th>Name</th>
<th>Contact</th>
<th>Phone</th>
<th>Email</th>
<th>Website</th>
<th>Night</th>
<th>Schools</th>
</tr>
<?php
$pemail = strlen($username) != 0;
$ret = mysql_query("select code from club order by name");
if ($ret && mysql_num_rows($ret)) {
while ($row = mysql_fetch_assoc($ret)) {
$p = new Club($row["code"]);
$p->fetchdets();
$sch = $p->Schools ? 'Yes' : '-';
print <<<EOT
<tr>
<td>{$p->display_code()}</td>
<td>{$p->display_name()}</td>
<td>{$p->display_contact()}</td>
<td>{$p->display_contphone()}</td>
<td>{$p->display_contemail($pemail)}</td>
<td>{$p->display_website()}</td>
<td>{$p->display_night()}</td>
<td>{$sch}</td>
</tr>
EOT;
}
}
示例2: Club
$club->Name = $newname;
$club->Contactfirst = $contfirst;
$club->Contactlast = $contlast;
$club->Contactemail = $contemail;
$club->Contactphone = $contphone;
$club->Website = $website;
$club->Night = $night;
$club->Schools = $sch;
$club->create();
$Title = "Club {$club->display_name()} created OK";
break;
default:
try {
$club = new Club();
$club->frompost();
$club->fetchdets();
} catch (ClubException $e) {
$mess = $e->getMessage();
include 'php/wrongentry.php';
exit(0);
}
// If name has changed, check it doesn't clash
if ($newcode != $club->Code) {
checkclash($newcode);
$qcode = mysql_real_escape_string($newcode);
mysql_query("update club set code='{$qcode}' where {$club->queryof()}");
$club->Code = $newcode;
}
$club->Name = $newname;
$club->Contactfirst = $contfirst;
$club->Contactlast = $contlast;