Please help me, how to deal with it – php tutorial

Please help me, how to deal with it – php tutorial

Please help me~Who can use FOR loop to write the numbers into the shape of an equilateral triangle?Who can write down the code for me? ——Solution—— —————Equilateral triangle? That’s troublesome…——Solution——————–The main problem is that you didn’t explain what numbers they are and what rules they use to arrange them

Regarding the error reported by phptouch, please help me!

I uploaded the program to the linux server today and everything is normal. When entering the backend of the website, an error occurred. . touch() [function.touch]: Utime failed: Operation not permitted What is happening? ? I searched online and found that it was a problem with PHP settings. Which setting is it? How can I solve this problem? Reply to discussion (solution) The touch function is disabled Moderator, what’s the matter? The ban is lifted. I checked the setting of disable_functiOns= .. in php.ini and found that no function is disabled. Utime failed: Operation not permitted UTIME failed: Operation not permitted Not disabling is worse But I don’t know why you want to Modify the modification date of the file I understand the literal explanation. What I want to say is why this prompt is displayed. Why not let it display this prompt? ? ? This prompt is not reported locally. . . What about permissions? Please modify the permissions of your WEB directory and take a look. I changed the permission to 777, but it still doesn’t work. No one has answered the question. . No one pays attention to this issue? Dear elders. . Will turning on safe…

There is a problem with php+jquery doing onchange submission action, please help me

PHP jQuery onchange I have a list of results. Each column has an onchange action, but only the onchange in the first row can be operated, and the others have no response. I don’t know what’s going on. Query($sqlDoctorTime); $arrDoctorTime = $SqlDB->getRows($resDoctorTime); for($i=0; $i<count($arrDoctorTime); $i++) { $strSelectStatus = ""; //Initial number source drop-down value $strSelectStatus = " “; $strSelectStatus .= “1”; $strSelectStatus .= “2”; $strSelectStatus .= “3”; $strSelectStatus .= “4”; $strSelectStatus .= “5”; $strSelectStatus .= “6”; $strSelectStatus .= “7”; $strSelectStatus .= “8”; $strSelectStatus .= “9”; $strSelectStatus .= “10”; $strSelectStatus .= “”; } } //End of doctor schedule list ?> Start time: (*) Start time: (* ) 1Doctor Start time End time Scheduling interval Initial number source number Remaining source number Whether to visit a doctor category Operator Operation Close();?> Reply to discussion (solution) Is the id repeated? Post it Check out the HTML source code. The employee number currently using the system: 0017-Wanhui, exit the system Doctor scheduling settings Start time: (*) Start time : (*) 1Doctor Start time End time Scheduling interval Initial number source number Number of remaining number sources Whether to visit a doctor category Operator Operation 131 2013-07-06 17:00:00 2013-07-06 17:30:00 30 minutes 12345678910 5 0…

PHPMYSQL database multiple selection problem, please help me

I made a table to browse students in a grade. Normal browsing displays all students, but I want to have some options next to it. For example, I want to display students with scores above 90, or I want to display students with scores above 90. A student named Wang who is between 80 and 70, how should I do this better? Please give me some advice from my seniors Reply to the discussion (solution) Of course, I am doing a query Post your table and write it out for you. Make a form and let it be submitted. Hello everyone, I put a few check boxes on a web page. For example, if I check 90 points, I will select students with 90 points and check the option with the surname Wang. It will display the students with the surname Wang. If you check both of them, you will select the one that contains these two. This is what I mean. There is nothing to see in the table, just some student information. How to design it with PHP? ? It’s just a simple form submission, nothing complicated. It is recommended that you do it yourself first and then…

Linuxphp compilation error, please help me

Linux PHP cross-compilation problem Linux PHP source code compilation problem I used i486-unknown-linux-gun-gcc series tools to compile PHP source code under Ubuntu 12.04 (5.2.17, this version is php-5.2.17- fpm-0.5.14.diff.gz patch; also tried 5.3.25), but after the configure is successful, source code errors will be encountered at the beginning of compilation. I don’t know how to solve it. Please give me some advice The errors prompted during the compilation process are all Reply to the discussion (solution) …. I don’t know the keywords behind the error in Baidu. The solution to the information behind the error is very simple to add the corresponding header file, but I want to When adding header files, I found that those files already contain these header files Why not compile 5.3 directly? The information after the error The solution is very simple to add the corresponding header files, but when I want to add the header files, I find that those files already contain these header files There may be paths that are not introduced when building. When compiling 5.3.25, the same error occurred! Added a libdir parameter, but still get the same error? ? ? This compiler is quite suspicious. It can be compiled…

PHP calls WebService, please help me~

‘1’,’outCount’=>’10’);$ret = $client->LatestNews($param);if($ret->return){ print_r($ret- >return);}else{ echo ‘no user’;}?> What’s wrong with simply calling Webservice? Asking for guidance~ Reply to discussion (solution) Is there anyone, waiting online print_r($ret); get stdClass Object ( [LatestNewsResult] => stdClass Object ( [ InheritanceNews] => Array ( [0] => stdClass Object ( [url] => http://pica.chalwin.com/cpzx/2013/278 .html [NewsCount] => 0 [Author] => larry [Title] => Movable type site construction process [NewsId] => 278 [ PublishTime] => 2013-04-16T13:34:57 ) ….. There is no return member print_r($ret); get stdClass Object ( [LatestNewsResult] => stdClass Object ( [InheritanceNews] => Array ( [0] => stdClass Object ( [url] => http://pica.chalwin.com/cpzx/2013/278.html [NewsCount] => 0 [Author] => larry [Title] => Movable type site construction process [NewsId] => 278 [PublishTime] => 2013- 04-16T13:34:57 ) ….. There is no return member So what should I do if I want to output everything? It’s not about outputting that set~ Hey. Is there anyone, waiting online How to bind it in the form $ret->LatestNewsResult->InheritanceNews is a Subscript array There should be no problem traversing this array, right? foreach($ret->LatestNewsResult->InheritanceNews as $item) { foreach( $item as $k=>$v) { echo “$k : $v\n”; }} foreach($ret->LatestNewsResult->InheritanceNews as $item) { foreach($item as $k=>$v) { echo “$k : $v\n”; }} Thank you, the…

PHP can only display one piece of data at a time, please help me

I wrote a PHP website, but only one piece of information can be added at a time, that is, only the first piece of data can be added and displayed, and the data added in the future cannot be seen; The code is as follows: Add product Product name: Release time: <?php for($i=1995;$i Year <?php for($i=1;$i Month <?php for($i=1;$i Day Sale price: Market price: Yuan Member price: Yuan Product type : <option value=> Product level: Boutique General Second-hand Elimination Product brand: Product model: Recommended: Yes No Item quantity: Product pictures: Product introduction: Reply to discussion (solution) In order to facilitate analysis, please post savenewgoods.php Is it an id? What is repeated? Print whether the submitted data has been received <?php $sql=mysql_query("select * from tb_type order by id desc",$conn); $info=mysql_fetch_array($sql); if($info==false) { echo "Please add the product type first!"; } while($info = mysql_fetch_array($sql)){} In order to facilitate analysis, please post savenewgoods.php I will post them all tonight, thank you all PHP code?1234567<?php $sql=mysql_query("select * from tb_type order by id desc",$conn); $info=mysql_fetch_array($sql); …… Do you rewrite the following lines in 138? ? Finally, where should I replace while? Thank you I don’t know what it means to only display the first piece…

Regarding the problem of php loop output, please help me!

I wrote a program in wordpress. The general process is as follows: 1. $get_posts_array calls articles of a certain category $get_posts_array = query_posts(array(‘posts_per_page’=>$numberposts,’orderby’=>’$orderby’,’category__and’=>array($sub_cat_id_str))); 2. Loop to find all the pictures in the article foreach ($posts_array as $index => $post_value_array) { if ($post_value_array- >post_status == ‘publish’) { ob_start(); ob_end_clean(); preg_match_all(‘// i’, $post_value_array->post_content, $pic_rexz); $post_item_array= $post_value_array->ID.’#’.$post_value_array->post_title.’#’.$post_value_array->post_name.’.html#’.$post_value_array ->guid.’#’; if (!empty($pic_rexz[1])) { $posts_pic_array[$index] = array_merge($pic_rexz[1],(array)$post_item_array) ; } } } 3. The problem occurs when using foreach or if statement to output the array $posts_pic_array as follows: 1. In the local xampp environment, use foreach or if statement to output the array $posts_pic_array is normal; 2. In the environment of Windows 2008 IIS + PHP5.4 when uploaded to the server, when the article category ID=1, the $posts_pic_array array is output in a loop and can only be printed. 3 pieces of data. (PS: The count($posts_pic_array) array has 150 records). Why are other categories normal, but the $posts_pic_array records of other categories also have 50-100 records? I have tried the foreach or if statements, but they can only output 3 records. I have been debugging for 2 days, I hope you can help! Reply to discussion (solution) Waiting for reply online, find the solution! if ($post_value_array->post_status…

Please help me, Master Zhengze – PHP tutorial

$str = “111|9|2212|1321424|5|”; $reg = “Rice Cooker”; $reg1 = “Fu Fu”; $reg2 = “Year”; preg_match_all(“/([0-9]+)\|/ isU”,$str,$arr); print_r($arr); Seek to match only 1. The rice cooker is no longer in the sea and has fallen 2. The wires and rice cooker rods are no longer 3. Should Sudiandan Company order rice cookers again? Reply to discussion (solution) $str = “111|9|2212|1321 424| 5|”;$reg = “rice cooker”;$reg1 = “no more”;$reg2 = “that year”;$sp = explode(‘|’, $str);$inArr = array();foreach ($sp as $key => $value) { if(strpos($value,$reg) !== FALSE && strpos($value ,$reg1) !== FALSE && strpos($value,$reg2) !== FALSE){ array_push($inArr, $value); }}var_dump($inArr); $str = “111|9|2212|1321 424|5|”;$reg = “rice cooker”;$reg1 = “no more” ;$reg2 = “Year”;$sp = explode(‘|’, $str);$inArr = array();foreach ($sp as $key => $value) { if(strpos($value,$reg ) !== FALSE && strpos($value,$reg1) !== FALSE && strpos($value,$reg2) !== FALSE){ array_push($inArr, $value); }}var_dump($inArr); Is regular expression OK? Because this text may be 1MB or more, is it more efficient to use arrays or regular expressions? Which one is more efficient than regular expressions? ? What if there are 1,000 arrays? Text regularity $s = “111|9| 2212|1321424|5|”;preg_match_all(‘/(?< =]*(?:(?:rice cooker|no more|then)[^|>]*){3}[^|>]*)>/U’, $s, $ r);print_r($r[1]); Array ( [0] => The rice cooker sea is no longer the same as before [1]…

Regarding the three-level linkage menu of php+mysql+ajax province and city, please help me.

Hey, here I go again. This time it is about the issue of three-level linkage menus in provinces and municipalities. I found a lot of such codes on the Internet, but most of them put the data into js. The boss said no, I need to connect to the database, and then I found someone with a database on the CSDN forum. But it’s not easy to use. Later my boss gave me a database with three tables, one for each province and city. Each province and city has an ID, and the city and district have a parent ID. The parent ID of the city is the ID of the province, and the ID of the district is The parent id is the city id. Then use ajax to create a three-level linkage effect. He said it was so simple, but I don’t know ajax. I wonder if someone can help me. Yesterday I worked overtime until after 8 o’clock just because of this. It was the first time since I graduated from college that I worked overtime until so late… This was yesterday’s work, and there is still today’s work today, so I can’t put it off any…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索