更新: 以下是我原来的问题.看到我的回答,看看我是如何解决它的.
我试图用MySQL数据库表'churchcal_events'中的事件填充我的日历.我可能会为特定日期和周期性事件设置一次性事件,可以设置为每周一,每隔周四或第二个星期五的每个月.
一次性事件没问题.每周活动(每周,每隔一次)都有效.但每个月的活动仅在第一个月显示,而不是在接下来的几个月.
churchcal_events表 - 排除对此问题不重要的字段
+----+----------------+------------+-----------+------------+------------+
| id | name | recurring | frequency | recur_type | recur_day |
+----+----------------+------------+-----------+------------+------------+
| 1 | Test Weekly | 1 | 1 | W | Sunday |
| 2 | Test Bi-Weekly | 1 | 2 | W | Monday |
| 3 | Test Monthly | 1 | 1 | M | Friday |
+----+----------------+------------+-----------+------------+------------+
Run Code Online (Sandbox Code Playgroud)
php代码 - 每月每天的循环内部
//query all events
$get_events = db_query("SELECT * FROM {churchcal_events}
WHERE …Run Code Online (Sandbox Code Playgroud) 我用VPS创建了我的第一个Laravel(3.2)应用程序.现在,我已经到了转移到专用服务器的时候了,我需要将该应用程序移动到新服务器.
我通过SSH使用RSYNC并将所有内容转移到新服务器,但是当我在浏览器(公共文件夹)中拉出网页时,我看到一个空白页面.
我可以在我的公共文件夹中提取文件,但不是应用程序.
我能错过什么?
我不知道我的语法有什么问题,但我遗漏了一些东西:
$createrequest = mysql_query("INSERT INTO products_updates_queue (id, kid,
product_version_id, key, ip) VALUES ('$request_id', '$uid', '$version_id',
'$request_key', '$request_ip')");
Run Code Online (Sandbox Code Playgroud)
我收到此错误:
"你的SQL语法有错误;请查看与你的MySQL服务器版本相对应的手册,以便在'key,ip'附近使用正确的语法)VALUES('j4ctveyd0x62'','1','z451ah3','hqbyu7bhg8za', '64 .134.163.2'在第2行"
谁能看到我失踪的东西?
我需要通过onclick事件关闭覆盖网站的colorbox iframe.我已经看过代码了parent.$.colorbox.close(); return false;,但是当我像这样使用它时它对我不起作用:<a onclick="parent.$.colorbox.close(); return false;">close</a>.我认为这是因为我没有使用标准的颜色框脚本来调用iframe.我修改它,以便我可以从html锚标记获取高度和宽度:
我的COLORBOX SCRIPT:
$.noConflict();
jQuery(document).ready(function($){
$("a[rel='colorbox']").each(function(){
var getWidth = parseInt($(this).attr('width'))
var getHeight = parseInt($(this).attr('height'))
var getScroll = parseInt($(this).attr('scrolling'))
if(getScroll == 'yes') { var frameScroll = 'true'; }
if(!getWidth) { var getWidth = '720'; }
if(!getHeight) { var getHeight = '480'; }
$(this).colorbox({innerWidth:getWidth, innerHeight:getHeight, scrolling:frameScroll, iframe:true, rel:"nofollow", transition:"elastic"});
});
});
Run Code Online (Sandbox Code Playgroud)
我需要用什么来关闭这个iframe onclick?