I have another question about PHP array format, please give me some advice.

First of all, I would like to thank xuzuning for helping me answer the previous array question. I would like to ask another question. If I put the type value in the table into the array, can this also be done? The following array is implemented through the above table Array( [classname] => array( [0]=> [1]=>Wedding Service[2]=>Mechanical Equipment[3]=>Hospital Medical[4]=>Lighting Decoration[5]=>Education Training[6]=>Chemical coatings[7]=>Beauty and fitness[8]=>Catering and food[9]=>Car service)[layout] => array( [0]=> [1]=>General[2 ]=>Two columns[3]=>Three columns[4]=>Grid)) Reply to discussion (solution) According to my way of writing, $res is the format you want now Since your post requires an array of subscripts, there is $res = array_values($res); $classname=”select * from table where type=’classname'”;$layout=”select * from table where type=’layout'”; According to my way of writing, $res is the format you want nowBecause your post requires a subscript array, that’s why it is there $res = array_values($res); xuzuning I just tried it, thank you, that is, you said to use the $res format, there is another question , what should I do if I want to replace the two words “unlimited” with a null value when outputting? In all your previous descriptions, the word “no limit” does not exist In all your previous descriptions, the…

Teacher Li Yanhui PHP Season 1 Chapter 1 Section 2 Video Why was the Guset project not installed successfully? I followed the teacher step by step, please give me some advice, thank you!

Web page prompt: Warning: mysql_connect(): Access denied for user ‘root’@’localhost’ (using password: YES) in D:\AppServ\www\Guest\conn.php on line 6 (several garbled diamond symbols) (Sorry, the picture cannot be uploaded) ps: The database has been loaded successfully Reply to discussion (solution) MySQL The login password is wrong Change the character set of the browser to gb2312 to see what the garbled characters are The database password is wrong You followed the step by step, but the configuration parameters of mysql need to be changed, such as username and password. Thank you everyone, I set the database login name and password myself, there is nothing wrong. I successfully imported the guest database, but the website cannot be opened through http://localhost:8082/guest in the browser window. This is the imported database This is an error message Isn’t it very clear? The root user’s password is incorrect You set a password and didn’t change it in the program Change the password in mysql_connect() in conn.php to your local mysql root password I don’t know, I just remember that I set the username root and password XXXX. How can I change it? Thank you~ Thank you all, the problem is solved~~Thank you~~~ Fill in the username and…

Regarding the LazyPHP framework, please give me some advice.

Regarding the LazyPHP framework, need guidance? $data[‘title’] = $data[‘top_title’] = ‘Homepage’; Finally, what does the equal sign “Home Page” mean? Is the render function equivalent to $ob->assign? Share to: assign? data-pics=”> ——Solution——————–$data[‘title’] = $data[‘top_title’] = ‘Home’; Assign values ​​to $data[‘title’] and $data[‘top_title’] at the same time The render function is used to load and execute the template The template is still php-html mixed code LazyPHP is only responsible for scheduling between modules The sample files need to be run in an environment with short tags enabled Since there is no template engine and ORM, 1.18M seems too bloated——Solution—————- —- Quote: $data[‘title’] = $data[‘top_title’] = ‘Homepage’ ; Finally, what does the equal sign “Home Page” mean? Is the render function equivalent to $ob->assign Old Han, can you do it?——Solution——————– Doesn’t the equal sign mean assignment?

I just started learning PHP, please give me some advice.

I just started to learn PHP, please give me some advice If any seniors have PHP teaching videos or useful e-books, please send them to me. . . [email protected] Thank you ——Solution——————– Just follow the examples in the manual. The Chinese manual can be downloaded from the official website. Other videos and so on are all extensions of the manual. Remember! Young man, the manual is the way to go….——Solution——————–[Details on PHP].Gao Luofeng ——Solution——————–I think Chuanzhi Blog The video is pretty good, very detailed, clear and clear. There are also help documents that LZ can use with php5 when developing and learning. A search on the Internet shows that —— Solution——————–Go and learn PHP100 or LZ— —-Solution——————–Sao Nian, go to php100, download the free videos and watch them, and then do more by yourself Basically, I can get started… —– -Solution——————–Pull an order to do, set the time, bite the bullet and do it, the future will Just go——Solution——————– Quote: I think the videos on Chuanzhi Blog are pretty good, they are quite thin, clear and clear, and LZ can cooperate with php5 when developing and learning. Help documents, online searches are all recommended Chuanzhi Podcast, I remember that I…

A 30-year-old girl switched to PHP with zero knowledge, please give me some advice.

A 30-year-old girl has changed her career to PHP with zero foundation. Can you give me some advice?A female friend is 30 years old and currently works as an engineering assistant, doing some odd jobs, excel, cad and so on. It is tiring and the salary is not high, 3k. Now I want to change my career to PHP, but I don’t know if it is feasible. Please speak enthusiastically. Thank you everyone! ——Solution——————–Why do female friends make themselves so tired? Of course PHP is easy to get into, but why do you have to make yourself so tired? Looking forward to your opinions…——Solution——————– 30 years old to play php. . It would be better for women to work in other industries. . ——Solution——————–30-year-old child Enough work, right? Still have energy? As for doing PHP, if I choose two 30-year-olds, one male and one female, I must choose the male… so. . . ——Solution——————–Get this now As for the industry, it seems not very optimistic. I am also working on PHP. It is somewhat difficult for women to do well in programming

Regarding the LazyPHP framework, please give me some advice.

Regarding the LazyPHP framework, need guidance? $data[‘title’] = $data[‘top_title’] = ‘Homepage’;Finally, what does the equal sign “Homepage” mean? Is the render function equivalent to $ob->assign? Share to: assign? data-pics=”> — —Solution——————–$data[‘title’] = $data[‘top_title’] = ‘Homepage ‘;Assign values ​​to $data[‘title’] and $data[‘top_title’] at the same time The render function is used to load and execute the templateThe template is still php-html Mixed codeLazyPHP is only responsible for scheduling between modules The sample file needs to be run in an environment with short tags enabled Since there is no template engine and ORM, 1.18M It seems too bloated——Solution——————– Quote: $data[‘title’] = $data[‘top_title’] = ‘Homepage’;Finally, wait. What does “Home Page” mean? Is the render function equivalent to $ob->assign Old Han, can you do it? ——Solution——————–Isn’t the equal sign meaning assignment?

A 30-year-old girl switched to PHP with zero knowledge, please give me some advice.

A 30-year-old girl switched to PHP with zero knowledge, please give me some advice.

A 30-year-old girl has changed her career to PHP with zero foundation. Can you give me some advice?A female friend is 30 years old and currently works as an engineering assistant, doing some odd jobs, excel, cad and so on. It is tiring and the salary is not high, 3k. Now I want to change my career to PHP, but I don’t know if it is feasible. Please speak up. Thank you everyone! ——Solution——————–Why should female friends Why are you so tired? Of course PHP is easy to get into, but why do you have to make yourself so tired? Looking forward to your opinions…——Solution——————– 30 years old to play php. . It would be better for women to work in other industries. . ——Solution——————–30-year-old child Enough work, right? Still have energy? As for doing PHP, if I choose two 30-year-olds, one male and one female, I have to choose the male… So. . . ——Solution——————–Get this now As for the industry, it seems not very optimistic. I am also working on PHP. It is somewhat difficult for women to do well in programming

I just started learning PHP, please give me some advice.

I just started learning PHP, please give me some advice.

I just started to learn PHP, please give me some advice If any seniors have PHP teaching videos or useful e-books, please send them to me. . . [email protected] Thank you ——Solution——————–Just follow the manual and type the examples in Chinese The manual can be downloaded from the official website. Other videos and other videos are all extensions of the manual, remember! Young man, the manual is the way to go….—- –Solution——————–[Details on PHP].Gao Luofeng ——Solution——————–I think the videos on Chuanzhi Blog are pretty good, they are quite detailed and full of content. It is clear, and there is also a help document that LZ can cooperate with php5 when developing and learning. Searching online is all——Solution——- ————-Go and learn PHP100 or LZ——Solution— ——————Sao Nian goes to php100, downloads the free videos and watches them, and then you can basically get started by doing more by yourself… ——Solution– ——————Pull an order to do, set the time, bite the bullet and do it, and the future will be easy——Solution——————– Quote: I think the videos on Chuanzhi Blog are pretty good. They are quite thin, clear and clear. There are also help documents for PHP5 that LZ can use when developing and…

There is an error when installing phpwind database, please give me some advice.

An error occurred while installing the phpwind database, please give me some adviceFatal error: Class ‘PwUserInfoDm’ not found in bbs\src\applications\install\controller\IndexController.php on line 656 Please give me some advice. How to deal with it? ——Solution——————–Did you copy all the files? ——Solution——————–This was not found The file class and file code should be missing, please download and install again——Solution————— —–Reinstall.

The page is messy after converting html to php, please give me some advice

The page is confusing after converting html to php, please helpI downloaded a web page template from the Internet IE 9 360 Chrome firefoxThe original html is opened directly, normal, normal, normalJust change the suffix to php Chaos Chaos Normal Normal Why is this? IE and 360 have the same core, so it should be the same reason. Is it a problem with my PHP version? I’m using 5.2.8. I cleared the caches of IE and 360 and tried again, but the same thing happened. New to PHP, I really don’t understand the principle. Please help me analyze it. How can I make IE and 360 work properly? ——Solution——————–You have to see something to know itYou can put the files in the cloud disk——Solution———- ———-How to understand confusion, take a look at the screenshot——Solution—— ————-Is it a Css problem? Are you using Bootstrap 2.3? You can compare the source code of the web page rendered in the two situations to see the difference. Or when changing to PHP, see if there is any code in your script that is parsed by the parser, and there is nothing else in the html.

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
首页
微信
电话
搜索