How do you correct this cycle?
$sa = ' SELECT * from Pql_spices_class ORDER by ID ASC '; $ra =mysql_query ($SA); $i = 1; while ($rsa =mysql_fetch_array ($ra, MYSQL_ASSOC)) { echo $rsa [' classname ']. ",". $rsa [' id ']. ""; $cid =
Php? paging
Read n data from the database and want to page out the N data
1, how do I page out this data so that it shows 10 data per page
2. How to calculate the total number of pages
I hope I can give you an example.
------to solve the idea--
A feature similar to publishing a circle of friends!
is on the current page, first select Upload a photo, the page jumps to the Friend Circle Publishing page, and then submit.
My problem is that I am going to write a JS on the current page, select
Please teach the question page address is followed by a slash can also be normal browsing, what is the matter?
127.0.0.1/index.php
This is a normal access situation.
The next slash is also accessible, but the entire page is deformed, what is the
How to achieve page click Effect
Other content
The effect that needs to be achieved is: When you click on this form form this place, I will style= "height:0" is set to 40, and then if you click anywhere other than the form,
thinkphp using Volist template assignment problems
Today I see a problem with the code, the template is assigned to the value of
Assign (' Variable name ', ' variable value ')Done, the template over there.
Xxx
But I
Extracting XML data problems from PHP
I know that PHP has many ways to get data from XML, most conveniently through regular expressions, but what if I use DOM methods?
I Baidu a bit, not very understand, ask the great God to explain.
Say
Ask for updated statements, increase the number of questions!!!
SELECT * from user where names= ' test ';:--sql statement
Update user SET num= $nums where names = ' $test ';:--sql increment statement
114:--$nums The number of stores in the database +
On the problem of digital array In_array
Among PHP$a array contains numbers from 1 to 100if (In_array (1, $a) {..........}This will put 11, 21. Wait, the 1 of the judges come in.This is still not working.In_array (1, $a, TRUE)
How to separate the 1
Ask JSON to get back the data inexplicable in front of the table what's going on
This post was last edited by z57737507 on 2015-10-17 17:00:27
Send JSON file Request File category.php Corresponding tables in the database JSON results Data
OnClick Jump problem
How can I get the value of "T" after the onclick jump to query
------to solve the idea----------------------
document.getElementById ("T"). Value gets the T value and assigns a value to query
------to solve the idea------
PHP Pre-processing statements do not know what the problem, ask the big God solution, the score is not many, the following is the code
$servername = ' servername '; Server name$username = ' username '; Database user Name$password = ' password ';
Beginner function encounters a small problem
Defines a function that can get the array elements of the specified integer and is called.
My Code is:
function sum ($STR)
{
for ($i =0; $i<>
$sum = 0;
$sum = $sum + $str [$i];
}
return $sum;
}
$a
To find a regular, replace the SRC attribute of the IMG tag
Title, my $data[' content ' has a lot of content, including an IMG tag:
I want to get rid of the/uploads/in the SRC attribute and save the rest. The regular is not how, ask the big
JS delay execution of the problem, dynamic loading JS
I have a test.js file that contains nothing. I mainly want to a.html Web page after the loading of a few seconds before execution.
A.html
Untitled DocumentWaiting for page to jump ...This
Send the value php let PHP do in the database save AH
The first one is unsorted, and the second is to get the value after the order. How can I send a value to a database to save it?
Number
[Help]php to deal with the efficiency of two texts
/*==> 1.txt A:123b:1333c:333==> 2.txt a:3333aa:3433C:323dfa==> Result.txt a:123:3333C:333:323dfa*/$file _1 = "1.txt";$file _2 = "2.txt";$f = fopen ("$file _1", ' r ') or Die ("Cann ' t Open the
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