本文整理匯總了PHP中Website::num_rows方法的典型用法代碼示例。如果您正苦於以下問題:PHP Website::num_rows方法的具體用法?PHP Website::num_rows怎麽用?PHP Website::num_rows使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Website
的用法示例。
在下文中一共展示了Website::num_rows方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Website
' <?php
if ($pages['parent_id'] == $pageid) {
echo 'checked';
}
?>
> <?php
echo $pages['page_name'];
echo "<br>";
?>
<?php
}
}
$website = new Website();
$submenus = $website->editblankpages($websiteid, $pageid);
$smenunum = $website->num_rows($submenus);
if ($smenunum > 0) {
?>
Want to add more submenu ?
<select id='checksubmenu' name='checksubmenu'>
<option value='' selected >Select</option>
<option value='Yes'>Yes</option>
<option value='No'>No</option>
</select>
<!--<input type='checkbox' id="checksubmenu" name='checksubmenu' value='yes'><br>-->
<div id='submenudiv'>
Submenu pages :<br>
<?php
while ($nonmenupages = $website->fetch_assoc($submenus)) {
?>
<input type='checkbox' name='submenu[]' value='<?php
示例2: Website
if ($dbmenu == 'No') {
echo "selected";
}
?>
>No </option>
</select>
</td>
</tr>-->
<tr>
<td colspan='2'><div id='submenucontent'>
<?php
if ($dbmenu == 'Yes') {
$website = new Website();
$submenu = $website->fetchblankpages($websiteid);
//print_r($submenu);
$num = $website->num_rows($submenu);
if ($num > 0) {
?>
Want to add submenu ? <select id='checksubmenu' name='checksubmenu'>
<option value=''>Select</option>
<option value='Yes'>Yes</option>
<option value='No'>No</option>
</select>
<!--<input type='checkbox' id="checksubmenu" name='checksubmenu' value='yes'><br>-->
<div id='submenudiv'>
submenu pages <br>
<?php
while ($pages = $website->fetch_assoc($submenu)) {
echo "<input type='checkbox' name='submenu[]' value='" . $pages['page_id'] . "' > " . $pages['page_name'] . " <br>";