Category: Programming Language
-
Post Views: 16 http://cn2.php.net/manual/zh/function.file.php file — read the entire file into an array, through the file function, you can directly correspond to the data in the database one by one, and complete the modification of the data!
-
Post Views: 14 deprecated: function set_magic_quotes_runtime() is deprecated in e: \wwwroot\city.chengdu.cn\include\common.inc.php on line 39 warning Since PHP 5.3.0, this function has been discarded. It is strongly recommended not to apply this function. The reason is this! The solution is: //set_magic_quotes_runtime(false); //Disable to escape the input of external resource input ini_set(“magic_quotes_runtime”,”0″); magic_quotes_runtime “0” Remove this option in PHP…
-
Post Views: 13 In the process of developing a donation website recently,http://xsj.sczyfw.org/,在PC端的支付成功后,遇见如下问题: Later, the value of the request parameter is still changed: the value of payment_type is 4, which means that it is possible to donate. The result is as follows: In addition, the Alipay donation platform also sent an email to the donated Alipay account. The screenshot is…
-
Post Views: 11 Furtherhttp://localhost/phpmyadmin有时候会被跳转至http://www.localhost.com/phpmyadmin,最后的解决方案为: Insert after phpinidir “c:/php” in the httpd.conf file loadfile “c:/php/php5ts.dll” loadfile “c:/php/libmysql.dll” Just solved! The specific environment of this problem is Apache/2.2.15 (Win32) PHP/5.2.17 Database client version: libmysql – 5.0.51a php extension: mysqli documentation
-
Post Views: 52 The difference between echo(), print(), print_r() echo() is a language structure, no return value The function of print() is basically the same as echo(), and it is also a language structure. The difference is that print has a return value, and always returns 1 print_r is a recursive print for output array objects 2. What is the…
-
Post Views: 11 Final print code: print_r($_post); echo(date(y-. $_post[‘start_time’].-01 00:00:00)); echo(date(Y-M-T 23:59:59, strtoTime(date(y-. $_post[‘end_time’].)))); echo exit(); Print result: array ([CustomerRebate]=> array ([money]=> 1000[sale_uid]=> 31 )[start_time]=> 1[end_time]=> 10[yt0]=> confirm ) 2014-1-01 00:00:002014-10-31 23:59:59 Perfect support for reading the first day and last day of a certain month, that is, a certain time range!
-
Post Views: 14 If the array is an sequential array and starts from 0, such as: public static $service_gid = array(11430, 11431, 11432); Then Now At this time, through InArray, it will detect whether 11430 is in the array, and it will return 0; If public static $service_gid = array(2=>11430, 3=>11431, 4=>11432); Then At this time, through InArray, it will…
-
Post Views: 13 The most initial code: $this->widget(zii.widgets.jui.cjuidatepicker, array( name=>mendtime, value=>date(Y-M-D, time()), Language=>yii::app()->getLanguage(), options=>array( showanim=>slidedown, changeyear=>true, changemonth=>true, showweek=>true, autosize=>true, dateformat=>YY-MM-DD, maxdate=>0, Mindate=>-10d, , HtmlOptions=>array( readonly=>readonly, class=>txt, Style=>width:200px ) )); Post-realization: Implementation process: 1. Extension download on the official website of yii:http://www.yiiframework.com/extension/datetimepicker/ 2. Copy the cjuidateTimePicker folder to the protected\extensions directory; 3. tohttps://github.com/trentrichardson/jQuery-Timepicker-Addon下载语言包,因为yii扩展中没有语言包; 4. Look in the file CJUIDateTimePicker.php: $CS->RegisterScriptFile($assets.self::assets_name..js,cclientScript::pos_end); add…
-
Post Views: 10 The actual rules of the js function are: if (hasError == false) { return false; } else { return true; // If it returns true, the form submission operation will continue! }
-
Post Views: 11 View code: View interface: Post print after submission: Requirement: question_type is to be inserted into the database, as a string Solution 1, directly reset $_POST[‘QuestionOrder’][‘question_type’]: Reprint out the POST variable: Solution 2: The result is that both solutions can be inserted in the question_type problem type (1 replenishment, 2 exchange, 3 returns, 4 refunds, 5…