本文整理匯總了PHP中Participant::get_roles方法的典型用法代碼示例。如果您正苦於以下問題:PHP Participant::get_roles方法的具體用法?PHP Participant::get_roles怎麽用?PHP Participant::get_roles使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Participant
的用法示例。
在下文中一共展示了Participant::get_roles方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: while
<td><strong>Evening Phone:</strong></td>
<td><span class="show_basic_info"><?php
echo $parti->phone_evening;
?>
</span>
<input type="text" class="edit_basic_info" id="phone_evening_edit" value="<?php
echo $parti->phone_evening;
?>
"/><br/>
<span class="helptext edit_basic_info">Phone numbers must be in the format<br> (xxx) xxx-xxxx</span>
</td>
</tr>
<tr>
<td><strong>Role(s): </strong></td>
<td><span class="show_basic_info"><?php
if ($roles = $parti->get_roles()) {
while ($role = mysqli_fetch_array($roles)) {
echo $role['Role_Title'] . "<br>";
${$role['Role_ID']} = '1';
}
}
?>
</span>
<div class="edit_basic_info">
<?php
$get_roles = "SELECT * FROM Roles";
include "../include/dbconnopen.php";
$roles = mysqli_query($cnnLSNA, $get_roles);
while ($role = mysqli_fetch_array($roles)) {
?>
<input type="checkbox" id="role_edit_<?php