在默认ckeditor 工具栏中,我看到这样的two行Icon/button:

现在,我需要像这样设计ckeditor工具栏one:

如何为此设计 ckeditor?(正常/响应视图)
我使用这个PHP函数获取MySql结果:
function fetcharray ($query_id)
{
if(!$query_id)
{
$query_id = $this->query_res;
}
if($query_id)
{
$this->q_array[$query_id] = @mysql_fetch_array($query_id,MYSQL_ASSOC); // LINE 124
return $this->q_array[$query_id]; //LINE 125
}
else
{
return false;
}
}
Run Code Online (Sandbox Code Playgroud)
现在,我转到PHP 5.5并看到此错误:
Strict Standards: Resource ID#73 used as offset, casting to integer (73) in domain.com/includes/functions/db.php on line 124
Strict Standards: Resource ID#73 used as offset, casting to integer (73) in domain.com/includes/functions/db.php on line 125
Run Code Online (Sandbox Code Playgroud)
我怎么能修复这个错误?
我需要使用这个docum打印curl版本:
<?PHP echo curl_version('version');?>
Run Code Online (Sandbox Code Playgroud)
但我的输出是空的!我怎么能打印卷曲的版本号?
我使用jquery验证验证我的表单,如下所示:
$("#formuser").validate({
rules: {
accountname: {
required: true,
minlength: 6
},
T1: {
required: true,
minlength: 6
},
accountpassword1: {
required: true,
minlength: 8
},
accountpassword2: {
required: true,
minlength: 8,
equalTo: "#accountpassword1"
},
},
});
Run Code Online (Sandbox Code Playgroud)
HTML:
<input id="accountpassword1" class="text-input form-control" type="text" name="accountpassword1" size="24" placeholder="password" >
<input class="text-input form-control" type="text" name="accountpassword2" size="24" placeholder="password" >
Run Code Online (Sandbox Code Playgroud)
这对我有用但是.当password1和密码2不为空时,我需要检查jquery验证.我的意思是如果密码输入为空jquery验证不验证字段否则验证字段password1和password2.
怎么创造这个?
注意::我只需要检查验证accountpassword1并accountpassword1使用此方法.
我在json方法中从MySQL数据库中检索和打印数据:
$ret = array();
$fileName = Access::FetchDB("SELECT name FROM tags");
$ret[]= $fileName;
echo json_encode($ret);
Run Code Online (Sandbox Code Playgroud)
现在输出是:
[[{"name":"test1"},{"name":"test2"},{"name":"test3"}]]
Run Code Online (Sandbox Code Playgroud)
但我需要这个输出:
["test1","test2","test3"]
Run Code Online (Sandbox Code Playgroud)
我该如何打印?
我需要使用phpmailer类和html电子邮件模板发送邮件。php mailer发送成功的电子邮件模板,但是在gmail中我看不到模板。我认为gmail没有加载外部CSS。
模板在这里
我怎么了 如何解决此问题并在gmail中显示完整模板?
我有这个日期输入:
$_POST['date']; output is : 2013/10/10.
现在我需要将此日期格式转换为3个参数:
$year = '2013';
$month = '10';
$date = '10';
Run Code Online (Sandbox Code Playgroud)
我该如何创建呢?
我有这个PHP重定向类:
<?PHP
public static function redirect($uri,$code=302)
{
// Specific URL
$location = null;
if (substr($uri,0,4)=='http') {
$location = $uri;
} else {
$location = self::base(true);
// Special Trick, // starts at webserver root / starts at app root
if (substr($uri,0,2) == '//') {
$location .= '/' . ltrim($uri,'/');
} elseif (substr($uri,0,1) == '/') {
$location .= '/' . ltrim($uri,'/');
}
}
// $sn = \$_SERVER['SCRIPT_NAME'];
// $cp = dirname($sn);
// $schema = \$_SERVER['SERVER_PORT']=='443'?'https':'http';
// $host = strlen(\$_SERVER['HTTP_HOST'])?\$_SERVER['HTTP_HOST']:\$_SERVER['SERVER_NAME'];
// if (substr($to,0,1)=='/') …Run Code Online (Sandbox Code Playgroud)