thinkphp3.1 can't even get a MySQL database. Please help me with the shrimp.
Thinkphp 3.1 can't even get a MySQL database please help me!!!
Project configuration file config.php:
Return Array (
' App_status ' = ' Debug ',
' Db_type ' = ' mysql ',/
Array transposition problem
PHP Code
$array = Array ( ' ab ' =>123, ' EF ' =>234, ' HC ' =>654)
I want to change the position of HC and AB now, including (key and value)
The result after transposition
PHP Code
$
How does PHP save a tree
Now there's a file directory that's a tree structure.
Now you are ready to traverse this directory structure with PHP
If the directory is a file, do not save
If the directory is a directory, save it.
Traversal can be
Problems with PHP open page
Echo ';
Echo ';
These two pages export two different Excel tables from the database, and then download
Call one alone, no problem, open two at a time.
------Solution--------------------
Could it have been a
Control problem of transferring parameters from a.php to b.php ~
a.php There is a form form, which points to action= "b.php" and is then submitted via post. B.php is to receive the data in these forms (only two data, all string types), then perform
In this case MySQL how to build a table better
Condition: One user can subscribe to multiple messages
The following features are required:
I query a user can draw the type of mail that the user subscribes to
I can find out which users have
PHP simple pseudo-static URL mechanism implementation
Once upon a while, our company was ready to develop a new set of station systems, decided to give the previous framework to KO, and re-develop a new framework to adapt to the new system functions.
PHP understands one: this,self,parent the difference between three keywords "go"
Transferred from: http://hi.baidu.com/sneidar/blog/item/4c0015ecd4da9d38269791d3.html
?
PHP5 is a language with most of the object-oriented language features, more
PHP Regular Expressions get the A-tag href problem in div tags
PHP Regular Expressions get the A-tag href problem in div tags
There are many on the page
The label is not what I want, I want it in this div tag
a connection
MySQL Query
Have such a table
USER_ID (User ID) ques_id (problem ID) their_answer (their answer) my_answer (my Answer)
To implement is the user ID and all IDs are compared to find answers to the same questions, and find out the same questions of my
Find a PHP regular expression
For example, there is a phrase "ask for a PHP regular expression like,フレ┼ズ", both Chinese and English words have!
I'm going to save every word of this sentence in an array, where the English word is stored in a
I want to develop a PHP Web application, the bottom does not know where to write, I hope you give some guidance
Want to develop a PHP Web application, do not want to use the framework, I want to write from the bottom, improve their own programming
Why is my webpage very slow?
Look at the code first.
PHP Code
Class Admin_controller extends Ci_controller {public function __construct () { parent::__construct (); $this->_init_user (); } Initializes the
Two-time development ideas for guidance
Little brother Project need to do a PHP system, due to the lack of suitable system, intends to use Dede to do two development, the problem came ...
1, Dede system is relatively large, because I use the
There are wooden books about the actual practice of the PHP project
Rt
------Solution--------------------
The following books do not represent my recommendation or visit
PHP design mode
Actual Assault: PHP project Development Case
Ask about the associated multiple table related fields in PHP, and do the SQL statement of the paging process
I have four tables, each of which is tb_bookinfo. Tb_booktype. Tb_bookcase. Tb_publishing. There are interrelated fields in these tables,
"PHP" identifies the main color of the picture
First, the applicable situation: such as http://www.teapic.com/list.htm, according to the color list the corresponding picture.
Second, the main program and API interpretation:
'
Ask PHP regular expression to get all the picture names in the specified folder, and then delete the related pictures of the operation
Recently helped a friend to do a backstage, which is used FCKeditor as an editor, but FCKeditor did not provide
PHP Execute VBS script
VBS is to print an Excel file and perform a print operation. You can print by using the cmd command and running the VBS program directly. When PHP calls VBS, the $returnvalue output is 0 (which means execution succeeds), but
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