Such a nested query, why the data is not found
Structure and data for the data table "Product":
PHP Code
Include_once (' conn.php '); $result = mysql_query ("Select P_class from Product GROUP by P_class limit 40");//First query, has
An error in writing a paragraph
There are two data in the news list, no problem. And then use the simplest PHP statement to display it, but the error:
PHP Code
/.. Database connection code, omitting
Is there a problem with this sentence? I don't know what's wrong.
PHP Code
------Solution--------------------
PHP code
/* $sql 1= $result = SELECT ' A1 ' from ' tab ' WHERE 1; $sql 2=$ result = SELECT ' A3 ' from
Oracle Character Set encoding issues
Oracle encoded as utf-8,php page encoded as GBK so why not garbled? and Oracle for utf-8,php for UTF-8 instead take out the Chinese garbled, browser when viewing with GBK out of Chinese display normal, and other
PHP Environment Building Tutorial, PHP Local environment easy to take care of!
??? Recently idle to do nothing, specially researched the next online popular PHP website program (such as: Dedecms, WordPress, forum discuz, etc. ), but the first to
How to get rid of the back 0
10000000000 becomes 10
10020000000 becomes 1020
10020030000 becomes 102030
How does this come true?
------Solution--------------------
echo preg_replace ('/0+$/', ' 0 ', 10020030000);
------Solution--------------------
Use characteristics of input file of form and related parameter setting in php.ini
1, control
The original upload file size is 4M
The default upload size is very small, as if only about 10M, specific I forgot. Need to be modified in Web.
Problems with PHP encapsulation
[code=php] [/code]
Defines a user class
Class user{
private $arr;//encapsulation does not allow external use
function __construct () {
$this->arr = $this->get_data ();//constructor, which executes when the class is
Ask a typical question about time control
Business on the question of a preemptive statement, assume that there are 1000 users, 5 seconds to be the first to speak, and only one person can speak; after 5 seconds, no one can speak.
Cannot use session
User Login base (total bounce password cannot be empty cue bar)
Beginner PHP, according to the book hit the following code, but the run time even if the user name and password are written, press login, jumped out or the user name password can not be
How to avoid require too many cases?
For example, there are multiple branches in one place, turning to n many different business modules.
These modules will be written in different PHP files.
So in this branch forwarding place is not to have all
Find PHP Learning Materials
These two days to learn PHP, on the Internet to read the message of the PHP video podcast in the total feeling to remember too much, I hope to buy a PHP-related book to assist the memory, please boss out ideas, what good
Build a Dream website under XP
PHP APACHE MYSQL
All downloaded well, do not know how to configure the environment
Baidu has the next PHP, the latest version is 5.4.3, but the download after the decompression is these things, do not know how
About a small programming problem, ask Master enlighten
The problem is this: I need to design a background administrator to view the message of the program. Suppose there are 2 people in the front desk message, then the two messages can be seen in
PHP prevents remote form submission
The benefit of the WEB is the ability to share information and services. The downside is the ability to share information and services, because some people do things without scruple.Take the form as an example.
Go Implementation of PHP cache
SQL query cache is suitable for readers this tutorial is suitable for PHP programmers who are interested in caching SQL queries to reduce the load on database connections and execution, and improve script
PHP Upload Restrictions
PHP modified upload file size (max_execution_time post_max_size)
Some friends to through their own website backstage, including the forum, to upload some files, PHP is generally 2m, or 8m (below we press the default is 2m),
PHP Common functions
Array functionsArray_chunk//Splitting an array into multiple arraysArray_key_exists//Check whether the given key name or index exists in the arrayArray_keys//Returns all the key names in the array and forms a new
Multi-level menu making
Ask you a question, when you choose a multi-level menu, for example
China---Fujian
This style of drop-down menu, how do you do, in JS, by judging the parent menu to selectively display sub-menu, or in the database to build
PHPUnit Installation Issues
I tried it today. Installation phpunit results found a lot of problems, I have to use the method is pear installed.
Install the Pear PHP root directory First
Perform
PHP go-pear.php
All the way to enter, met (y/n) on 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