本文整理汇总了PHP中DBUtils::delete方法的典型用法代码示例。如果您正苦于以下问题:PHP DBUtils::delete方法的具体用法?PHP DBUtils::delete怎么用?PHP DBUtils::delete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DBUtils
的用法示例。
在下文中一共展示了DBUtils::delete方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: delPhoto
public static function delPhoto($photoId)
{
$pdo = new DBUtils();
$sql = "delete from photo where photoId = '{$photoId}'";
$rs = $pdo->delete($sql);
return $rs;
}
示例2: delNav
public static function delNav($snavId)
{
$pdo = new DBUtils();
$sql = "delete from second_nav where snavId = '{$snavId}'";
// print_r($sql);
// exit;
$rs = $pdo->delete($sql);
return $rs;
}
示例3: del
public static function del($articleId)
{
$pdo = new DBUtils();
$sql = "delete from article where articleId='{$articleId}'";
return $pdo->delete($sql);
}
示例4: delBuy
public static function delBuy($id)
{
$pdo = new DBUtils();
$sql = "delete from buy where id = '{$id}'";
$rs = $pdo->delete($sql);
}
示例5: delCourse
public static function delCourse($courseId)
{
$pdo = new DBUtils();
$sql = "delete from course where snavId = '{$courseId}'";
$rs = $pdo->delete($sql);
}
示例6: delJoinus
public static function delJoinus($id)
{
$pdo = new DBUtils();
$sql = "delete from joinus where id = '{$id}'";
$rs = $pdo->delete($sql);
}