本文整理匯總了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);
}