【发布时间】:2014-01-15 21:49:30
【问题描述】:
我在代码 ex 中有一个带有回车的脚本:
$q = $this->db->prepare("\n\t\t\tINSERT INTO hb_orders(`id`,`number`,`payment_module`,`client_id`,`invoice_id`,\n\t\t\t`total`,`date_created`,`status`,`order_ip`,`notes`) VALUES (\n\t\t\t'',:number,:module,:client,:invoice,\n\t\t\t:total,:date,:status,:ip,:notes\n\t\t\t)\n\t\t");
$q = $this->db->prepare("SELECT dom.*, p.options as tld_options, p.ns as tld_ns, p.nsips as tld_nsip FROM hb_domains dom\r\n LEFT JOIN hb_domain_prices p ON p.product_id=dom.tld_id\r\n WHERE dom.id=? LIMIT 1");
$query = "SELECT mc.*, mc.settings as module_config FROM hb_modules_configuration mc\r\n WHERE mc.active='1' AND (mc.settings LIKE '%isobserver%' ";
如何使用 php 代码删除它们?
谢谢。
【问题讨论】:
-
向我们展示您迄今为止的尝试
-
为什么要删除它们? MySQL 运行这些查询应该没有问题。
-
\n不是回车符,而是换行符(或换行符):\r是回车符