本文整理汇总了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>";