How is this JSON generated?
Goal: Generate a tree menu.
Database, as follows:
I am in the background, how to use PHP to generate the following josn, then they show ah?
The JSON format is as follows:
var json = [{"Name": "*a", "List": [{"Name": "*
Help to see this code how to modify!!!!
Perform a normal search
///*
if (isset ($goods _param[' class ')) {
$condition [' gc_id_ '. $goods _param[' class '] [' depth ']] = $goods _param[' class ' [' gc_id '];
}
//*/
if (Intval ($_get[' b_id ')) > 0)
How does this simple MySQL order improve efficiency? [
SELECT DISTINCT a.name from table A ORDER by (select SUM (num) as num from table where name=a.name) desc
A table table,name field is duplicated, and the NUM field is a number: Displays the
Seeking ideas: Juqery+thinkphp's question and answer system
The general requirement is to click on the left-hand side of the question, and all answers to the question appear on the right. Question I have called from the database.
My thoughts.
1.
Why does the tutorial not actually do the same thing?
There's a very strange question,
First of all, the premise, generally upload pictures, form type to be written file
But the discovery of this CMS is used in the text,
Is it wrong to write, or I
About PHP Introductory book recommendations, please play
I am a novice, is learning PHP.
Found on the Internet, see a lot of people recommend the so-called Bible, that is the
PHP and MySQL Web development. The fourth edition of the original book.
PHP does not use regular verification email What's the big God
Condition 1: The first character must be English or numeric or underlined with which string function?
Condition 2: Must contain an @ STRING function Yes?
Condition 3: Contains more than
I am a junior student, more like the development of Python, but the current domestic is not popular PHP development ah?? The Great God came in
Background development for personal reasons like Python development, read PHP books but not very
How PHP submits to its own page how to refresh the commit
Form submitted to its own page, after the refresh will repeat the submission, how to prevent?
------to solve the idea----------------------
Can write a JS
You changed my hair.
------to
What the hell is this about like?
$sqld = $empire->query (' SELECT infotags, id from hd_ecms_shop_data_1 where hd_ecms_shop_data_1.infotags like '% spot promo product % "');//infotags field under Query sub-table
$bqrd = $empire->fetch ($sqld);
Var_
How does this look in PHP mysql?
Premise: There is a field named ABC in the database in a table, but forget the table is called what name, and the database has hundreds of tables, it is impossible to find a one, so then the demand came
How do I
thinkphp if data is not modified when data is updated, the result is wrong to be returned
in Thinkphp's curd, a strange problem arises when using the Save method, that is, if the data is not updated (same as the original data), the return value is
How does DateTimePicker make it show the year view?
http://www.bootcss.com/p/bootstrap-datetimepicker/
There is a year view, ask the big God to change how to write
------to solve the idea----------------------
$ (". Form_datetime").
Ask for an empty record in a multidimensional array
Want to let empty records are deleted, and after deletion, some key is not, to the smooth key is also rearranged
For example, delete the $arr [' 0 '] $arr [' 3 '] $arr [' 5 '], then the
Php-str_replace cannot traverse replace
See the following code
$data = Array (' or ', ' my ', ' I ', ' which ', ' love ');
$arr = Array (' l ' = = ' K ', ' w ' = = ' Q ', ' e ' = = ' R ', ' t ' = ' y ', ' m ' =>5);
foreach ($data as $k = = $v)
How is the URL rule in PHP written to the database?
For example, I define a good article URL rules for
post/{$id}.html
{$id} represents the article ID
Write the statement of the database should be how to write, because {$id} is also the value
$.ajax Why the custom options cannot be passed in to the callback????
This post was last edited by jianye112 on 2015-03-09 23:53:25
$.ajax Why the custom options cannot be passed in to the callback????
Click Perform AJAX request actionfunction
Use of the Discuz forum, home forum.php, when the visit was pointed to other sites, how to solve ah?
In the forum when the problem, look at the source code, found to be attached to the above paragraph, so a visit, will jump.
360
Just learn PHP, want to question how the interface design?? Please don't laughed at.
Previously used the simple Small web site program, in the software directly drag Table,textbox,button and other controls, and then double-click to write code, save
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service