本文整理汇总了PHP中Club::queryof方法的典型用法代码示例。如果您正苦于以下问题:PHP Club::queryof方法的具体用法?PHP Club::queryof怎么用?PHP Club::queryof使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Club
的用法示例。
在下文中一共展示了Club::queryof方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: checkclash
function checkclash($code)
{
$club = new Club($code);
$ret = mysql_query("select code from club where {$club->queryof()}");
if ($ret && mysql_num_rows($ret) != 0) {
$column = "code";
$value = $code;
include 'php/nameclash.php';
exit(0);
}
}
示例2: Club
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
include 'php/session.php';
include 'php/checklogged.php';
include 'php/opendatabase.php';
include 'php/club.php';
try {
$club = new Club();
$club->fromget();
$club->fetchdets();
} catch (ClubException $e) {
$mess = $e->getMessage();
include 'php/wrongentry.php';
exit(0);
}
$ret = mysql_query("delete from club where {$club->queryof()}");
if (!$ret) {
$mess = "Cannot delete club";
include 'php/dataerror.php';
exit(0);
}
$nrows = mysql_affected_rows();
if ($nrows == 0) {
$mess = "No clubs deleted";
include 'php/dataerror.php';
exit(0);
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<?php