这样写错哪了好像只能清理第一个数据库

WBOY
Release: 2016-06-13 13:28:55
Original
826 people have browsed it

这样写哪里错了好像只能清理第一个数据库
$today=date('Ymd');
$date=date("Ymd",strtotime($today."-3 day"));
$arr=array('baidudy','aamm1');
foreach($arr as $value){
mysql_select_db('$value');
mysql_query("DELETE FROM `clicked` WHERE `date` mysql_query("DELETE FROM `clickip` WHERE `date` }

------解决方案--------------------

PHP code
foreach($arr as $value){
mysql_select_db("$value");
mysql_query("DELETE FROM `clicked` WHERE `date` 
                 
              
              
        
            
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template