Php Data can be obtained but cannot be written to the same database file. Another table may be written
// Session_id (SID );
// Session_start ();
Require_once ("../connect/conn_ SQL .php"); // contains the database link file
If ($ _ POST ["txt_taker"
For more information, see the following code:
When you click the submit button, if you select save = 1, the submission is successful. However, if you directly use OK. php? Save = 1 "can be used too. how can I avoid using" OK. php "directly?
What is the difference between return and exit? I mainly put it in the php main code. What are the detailed usage differences?
Reply to discussion (solution)
Die () stops running the program and outputs the contentExit
Php files are transmitted as streams.
Scenario:
The client obtains the mp3 file on the server for playing, but the client cannot write the file or download the file for some reason.
The idea is to use fopen-> fread-> echo on the php end to read the
The CI framework deletes the index. php issue and finds out how to create a. htaccess file in the root directory of the current project.
RewriteRule ^ (. *) $/index. php/$1 [L]
This path can remove index. php.
But I put it in the level 2
Php + Ajax encoding problems encountered when verifying the user name PHP Ajax MySQL test
I encountered this problem when testing the code.
The code is as follows:
Index. php
In the IIS environment, how does PHP obtain REMOTE_PORT IIS as the SERVER? in PHP, $ _ SERVER ['remote _ port'] cannot obtain the corresponding value. why? how can this problem be solved?
Reply to discussion (solution)
At least there is no such
DedeCMS
Why can't I add data to all the new fields added by Zhimeng content model management ?.. The comparison is a newly added field. when the information is added, the information filled in indicates that it cannot be added, and the database is
$ _ SESSION transmission session between pages
$ _ SESSION ['id'] = $ I [id];?>
">
. Jpg "/>
$ I contains 10 messages,
Click any image and print it to the B page through $ _ SESSION.
How can I select the image to be clicked and print the
How can I automatically add cookies to the form? Cookie login
Every time I log on with a cookie, I will automatically enter the cookie into the form and stop it on the login page.
Reply to discussion (solution)
The Cookie automatically carries the
For example, you can enter a string of characters in a text box.
Content entered for the first time: $ w1 = "http://you.video.sina.com.cn/ B /25323843-1272884840.html ";
Second input: $ w2 = "http://v.youku.com/v_show/id_XMzIzNjA2NjE2.html ";
Remotely retrieve the page, just the first few lines of HTML! How to do it ~ Remotely retrieve the page, just the first few lines of HTML! How to do it ~
The entire page is obtained using file_get_contents!
Which function can be used for free
CMS development problems CMS, CI, Smarty
The company asked me to develop a cms with another colleague, because we both just graduated and there are still many other colleagues who don't know where to start. we plan to use CI + Smarty for
The following is the test code for the problem of using a large array as an array marker:
$int = 135893597710;print_r($int);print_r(array($int=>1));
The output result is 135893597710 Array ([-1545355762] => 1) on windows)
In linux, the
How to run php code in database fields? How to run php code in database fields?
Reply to discussion (solution)
You can use the eval function.
No problems
I copied an example. let's take a look.
$ String = "beautiful ";$ Time =
To obtain the values of multiple check boxes in PHP, do you need to add [] to the name attribute value of the check box? I found that the value of the check box is obtained in the PHP program, generally, [] is added to the name attribute of the
The array determines the output array A and array B. to output the value of A, the value of A is more than that of B. There are several columns in A that must be output, so compare A with B, if the same value exists, the output is displayed ....
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