小编phe*_*mix的帖子

如何从$ _POST数组中删除元素?

我想从公式中将记录插入MySQL数据库表.问题是变量field中的表中的列不存在,$_POST但它显示为a textfield中的a formulaire.我通过这种方式插入字段值:

$newRecord->insert($_POST); // we created a generic function insert($array) to insert records
Run Code Online (Sandbox Code Playgroud)

那么如何删除$ _POST的元素呢?

html php xhtml post

2
推荐指数
1
解决办法
6004
查看次数

PHP 5中java"super"关键字的等价物是什么?

我想要extend一个class:class figure extends model_base { ... },并且在类的构造函数中(这里是图)

我想调用它的父代constructor:在java中我们通过编写来实现它super(arguments);

那么如何在PHP中调用parent的构造函数呢?

php

2
推荐指数
2
解决办法
4052
查看次数

如何退出(关闭)移动Flex应用程序?

我想在单击按钮时以编程方式退出(关闭)移动Flex应用程序.什么是ActionScript?

apache-flex actionscript actionscript-3 flex-mobile

2
推荐指数
1
解决办法
1487
查看次数

phpinfo()中的哪个条目介绍了GD库?

我想在表单中进行验证码编程。我搜索了“ php captcha”,发现应该安装GD库。我做了一个phpinfo(),但看不到识别GD库的关键字是什么;我的PHP版本是5.2.1

那么phpinfo()中GD库的输入文本是什么,以及如何启用GD库?

php

2
推荐指数
1
解决办法
1945
查看次数

如何使用加密数据进行LIKE搜索?

我的专栏 lib_question 中的数据是使用 AES_ENCRYPT 加密的。现在我想从表中搜索记录,其中该列类似于用户输入的特定条目。我尝试了这个,但它不起作用:

select id_question 
from question 
where lib_question like CONCAT('%',AES_ENCRYPT('contribuer', HEX('AVtr34ENMG')),'%');
Run Code Online (Sandbox Code Playgroud)

我记得通过应用程序将“contribuer”一词输入到与 lib_question 列对应的字段中。

那么如何做出LIKE语句呢?

mysql

2
推荐指数
1
解决办法
1662
查看次数

带有更改处理复选框的 AdminLTE 不起作用

我将iCheck课程用于我的checkbox

<head>
...
<spring:url value="/resources/js/plugins/iCheck/all.css" var="iCheckCss" />
        <link rel="stylesheet" href="${iCheckCss}">
...
<spring:url value="/resources/js/plugins/iCheck/icheck.min.js" var="iCheckJs" />
        <script src="${iCheckJs}"></script>
...
</head>
<body>
...
<label><span id="select_all_${groupe_menu.gmnu_code}"></span> <input type="checkbox" class="minimal" id="selectToutC_${groupe_menu.gmnu_code}" /></label>
...
</body>
<script type="text/javascript">

    $(function() {

        $("span[id^='select_all_']").each(function(){
            $(this).html(_getText("admin.choix.select.deselect.tout"));
        });

        //iCheck for checkbox and radio inputs
        $('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({
            checkboxClass: 'icheckbox_minimal-blue',
            radioClass: 'iradio_minimal-blue'
        });

        $(":checkbox[id^='selectToutC_']").on("change", function(e) {
             alert("ddddd");
        });

    });

</script>
Run Code Online (Sandbox Code Playgroud)

在运行时,当我单击复选框时,警报不显示!那么有什么问题呢?

jquery twitter-bootstrap adminlte

2
推荐指数
1
解决办法
5731
查看次数

所有设置返回函数是否​​都支持隐式循环?

以下两个陈述是等效的:

// #1
$('.tr_tab_code').children().removeAttr("disabled");

// #2
$('.tr_tab_code').children().each(function() {
  $(this).removeAttr("disabled");
});
Run Code Online (Sandbox Code Playgroud)

在语句1中,不需要进行循环.我想知道返回一组元素的所有函数是否支持语句1中的隐式循环?

jquery

2
推荐指数
1
解决办法
28
查看次数

Ngrok url 每天都会变化 我启动 Ngrok

当我离开办公室时,我必须关掉电脑,然后我必须在Ngrok第二天开始工作。令人惊讶的是,它URL给出Ngrok的与昨天给出的不同。所以为了测试DialogflowWebhook Fulfillment必须每天都改变URL!那么如何避免这种情况呢?

ngrok dialogflow-es dialogflow-es-fulfillment

2
推荐指数
1
解决办法
7785
查看次数

即使在使用 UTF8 后处理 InputStreamReader 时也不保留字符编码

有数据:

batiment:Kube D
etage:4ème
description:some_description
Run Code Online (Sandbox Code Playgroud)

我想通过 InputStreamReader 的东西来获取这些数据:

SharedByteArrayInputStream sbais = (SharedByteArrayInputStream) content;
Reader reader = new InputStreamReader(sbais, Charset.forName("UTF8"));
int size = sbais.available();
char[] theChars = new char[size];
int data = reader.read();
int i = 0;
while (data != -1) {
    theChars[i] = (char) data;
    i++;
    data = reader.read();  
}
String parse = new String(theChars);
String[] parties = parse.split("Content-Transfer-Encoding: quoted-printable");
String partie = (parties[1]).trim();
parties = partie.split("\\R");
String ret = "";
for(String ligne : parties) {
   if (ligne == null …
Run Code Online (Sandbox Code Playgroud)

java character-encoding

2
推荐指数
1
解决办法
43
查看次数

手动单击单选按钮后如何以编程方式取消选中它?

表单上有单选按钮:

...
for ( $i = $data["figure"]["cnt"] / 2; $i < $data["figure"]["cnt"]; $i++) {
    $tabFields[4]['html'] .= '
        <td align="center">     
            <input type="radio" id="fig_"'.$i.' name="fig_code" value="' . $data["figure"][$i]["fig_code"] . '" onchange="verifier_usage_figure('. $data["figure"][$i]["fig_code"] .')" />
        </td>';
...
Run Code Online (Sandbox Code Playgroud)

verifier_usage_figure满足特定条件时,我想取消选中单击的收音机的功能。如何编码?

javascript

1
推荐指数
1
解决办法
1493
查看次数