当前位置: 首页>>代码示例>>PHP>>正文


PHP deQuoteSQL函数代码示例

本文整理汇总了PHP中deQuoteSQL函数的典型用法代码示例。如果您正苦于以下问题:PHP deQuoteSQL函数的具体用法?PHP deQuoteSQL怎么用?PHP deQuoteSQL使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了deQuoteSQL函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: htmlencode

     echo "</td>";
     //we need to have a column dedicated to nulls -di
     echo $tdWithClassLeft;
     if ($result[$i]['notnull'] == 0) {
         if ($result[$i]['dflt_value'] === "NULL") {
             echo "<input type='checkbox' name='" . $j . ":" . $i . "_null' id='row_" . $j . "_field_" . $i . "_null' checked='checked' onclick='disableText(this, \"row_" . $j . "_field_" . $i . "_value\");'/>";
         } else {
             echo "<input type='checkbox' name='" . $j . ":" . $i . "_null' id='row_" . $j . "_field_" . $i . "_null' onclick='disableText(this, \"row_" . $j . "_field_" . $i . "_value\");'/>";
         }
     }
     echo "</td>";
     echo $tdWithClassLeft;
     if ($result[$i]['dflt_value'] === "NULL") {
         $dflt_value = "";
     } else {
         $dflt_value = htmlencode(deQuoteSQL($result[$i]['dflt_value']));
     }
     if ($typeAffinity == "INTEGER" || $typeAffinity == "REAL" || $typeAffinity == "NUMERIC") {
         echo "<input type='text' id='row_" . $j . "_field_" . $i . "_value' name='" . $j . ":" . $i . "' value='" . $dflt_value . "' onblur='changeIgnore(this, \"row_" . $j . "_ignore\");' onclick='notNull(\"row_" . $j . "_field_" . $i . "_null\");'/>";
     } else {
         echo "<textarea id='row_" . $j . "_field_" . $i . "_value' name='" . $j . ":" . $i . "' rows='5' cols='60' onclick='notNull(\"row_" . $j . "_field_" . $i . "_null\");' onblur='changeIgnore(this, \"row_" . $j . "_ignore\");'>" . $dflt_value . "</textarea>";
     }
     echo "</td>";
     echo "</tr>";
 }
 echo "<tr>";
 echo "<td class='tdheader' style='text-align:right;' colspan='5'>";
 echo "<input type='submit' value='" . $lang['insert'] . "' class='btn'/>";
 echo "</td>";
 echo "</tr>";
 echo "</table><br/>";
开发者ID:gorvelyfab,项目名称:pla,代码行数:31,代码来源:index.php

示例2: strtolower

         //we need to have a column dedicated to nulls -di
         echo $tdWithClassLeft;
         if ($result[$i]['notnull'] == 0) {
             if ($result[$i]['dflt_value'] === NULL) {
                 echo "<input type='checkbox' name='" . $j . ":" . $field_html . "_null' id='row_" . $j . "_field_" . $i . "_null' checked='checked' onclick='disableText(this, \"row_" . $j . "_field_" . $i . "_value\");'/>";
             } else {
                 echo "<input type='checkbox' name='" . $j . ":" . $field_html . "_null' id='row_" . $j . "_field_" . $i . "_null' onclick='disableText(this, \"row_" . $j . "_field_" . $i . "_value\");'/>";
             }
         }
         echo "</td>";
         echo $tdWithClassLeft;
         $type = strtolower($type);
         if ($scalarField) {
             echo "<input type='text' id='row_" . $j . "_field_" . $i . "_value' name='" . $j . ":" . $field_html . "' value='" . htmlencode(deQuoteSQL($result[$i]['dflt_value'])) . "' onblur='changeIgnore(this, \"row_" . $j . "_ignore\");' onclick='notNull(\"row_" . $j . "_field_" . $i . "_null\");'/>";
         } else {
             echo "<textarea id='row_" . $j . "_field_" . $i . "_value' name='" . $j . ":" . $field_html . "' rows='5' cols='60' onclick='notNull(\"row_" . $j . "_field_" . $i . "_null\");' onblur='changeIgnore(this, \"row_" . $j . "_ignore\");'>" . htmlencode(deQuoteSQL($result[$i]['dflt_value'])) . "</textarea>";
         }
         echo "</td>";
         echo "</tr>";
     }
     echo "<tr>";
     echo "<td class='tdheader' style='text-align:right;' colspan='5'>";
     echo "<input type='submit' value='" . $lang['insert'] . "' class='btn'/>";
     echo "</td>";
     echo "</tr>";
     echo "</table><br/>";
 }
 $fieldStr = substr($fieldStr, 1);
 echo "<input type='hidden' name='fields' value='" . htmlencode($fieldStr) . "'/>";
 echo "</form>";
 break;
开发者ID:rivalinx,项目名称:php-file-host,代码行数:31,代码来源:phpliteadmin.php

示例3: strtolower

                 echo "<input type='checkbox' name='" . $j . ":" . $field . "_null' id='" . $j . ":" . $field . "_null' checked='checked' onclick='disableText(this, \"" . $j . ":" . $field . "\");'/>";
             } else {
                 echo "<input type='checkbox' name='" . $j . ":" . $field . "_null' id='" . $j . ":" . $field . "_null' onclick='disableText(this, \"" . $j . ":" . $field . "\");'/>";
             }
         }
         echo "</td>";
         echo $tdWithClassLeft;
         // 22 August 2011: gkf fixed bug #55. The form is now prepopulated with the default values
         //                 so that the insert proceeds normally.
         // 22 August 2011: gkf fixed bug #53. The form now displays more of the text.
         // 19 October 2011: di fixed the bug caused by the previous fix where the null column does not exist anymore
         $type = strtolower($type);
         if ($scalarField) {
             echo "<input type='text' id='" . $j . ":" . $field . "' name='" . $j . ":" . $field . "' value='" . deQuoteSQL($result[$i][4]) . "' onblur='changeIgnore(this, \"" . $j . "_ignore\");' onclick='notNull(\"" . $j . ":" . $field . "_null\");'/>";
         } else {
             echo "<textarea id='" . $j . ":" . $field . "' name='" . $j . ":" . $field . "' rows='5' cols='60' onclick='notNull(\"" . $j . ":" . $field . "_null\");' onblur='changeIgnore(this, \"" . $j . "_ignore\");'>" . deQuoteSQL($result[$i][4]) . "</textarea>";
         }
         echo "</td>";
         echo "</tr>";
     }
     echo "<tr>";
     echo "<td class='tdheader' style='text-align:right;' colspan='5'>";
     echo "<input type='submit' value='Insert' class='btn'/>";
     echo "</td>";
     echo "</tr>";
     echo "</table><br/>";
 }
 $fieldStr = substr($fieldStr, 1);
 echo "<input type='hidden' name='fields' value='" . $fieldStr . "'/>";
 echo "</form>";
 break;
开发者ID:rogeriopradoj,项目名称:phpliteadmin,代码行数:31,代码来源:phpliteadmin.php

示例4: unserialize

         echo "<option value=''></option>";
         $functions = unserialize(FUNCTIONS);
         for ($z = 0; $z < sizeof($functions); $z++) {
             echo "<option value='" . $functions[$z] . "'>" . $functions[$z] . "</option>";
         }
         echo "</select>";
         echo "</td>";
         echo $tdWithClassLeft;
         // 22 August 2011: gkf fixed bug #55. The form is now prepopulated with the default values
         //                 so that the insert proceeds normally.
         // 22 August 2011: gkf fixed bug #53. The form now displays more of the text.
         $type = strtolower($type);
         if ($scalarField) {
             echo "<input type='text' name='" . $j . ":" . $field . "' value='" . deQuoteSQL($result[$i][4]) . "' onblur='changeIgnore(this, \"" . $j . "_ignore\")'/>";
         } else {
             echo "<textarea name='" . $j . ":" . $field . "' rows='5' cols='60' onblur='changeIgnore(this, \"" . $j . "_ignore\")'>" . deQuoteSQL($result[$i][4]) . "</textarea>";
         }
         echo "</td>";
         echo "</tr>";
     }
     echo "<tr>";
     echo "<td class='tdheader' style='text-align:right;' colspan='5'>";
     echo "<input type='submit' value='Insert' class='btn'/>";
     echo "</td>";
     echo "</tr>";
     echo "</table><br/>";
 }
 $fieldStr = substr($fieldStr, 1);
 echo "<input type='hidden' name='fields' value='" . $fieldStr . "'/>";
 echo "</form>";
 break;
开发者ID:rogerhub,项目名称:Clark,代码行数:31,代码来源:index.php


注:本文中的deQuoteSQL函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。