Write a PHP web site, but only one message at a time, that is, only add and display the first data, the subsequent addition of the data are not visible;
The code is as follows:
Add Item
Add Item
The following code, download the question why is the size only 0 bytes?
if ($attachment [' attachment '])
{
$file = ' uploads/resource/'. $attachment [' attachment '];
if (File_exists (DirName ($file)))
{
$fileName = basename ($file);
Header
Hard to find, no result,
Please take a cookie to visit a website, read the source code, processing saved to the file or output out, the novice to ask greatly appreciated.
I wrote it myself, this but can only output the original page effect, do not
This error is displayed when importing a table to MySQL.
Fatal error:allowed memory size of 134217728 bytes exhausted (tried to allocate, bytes) in C:\Program Files (x86) \EASYP
Can print out the configuration information of PHP, Apache can start normally, MySQL can also log in, why in writing a test PHP link database is dead or alive connection, I novice, ask you experts answer: test code:
$host = ' localhost
The path to the Phpinfo output php.ini is C:\Windows
But this directory can not find php.ini, hidden files are displayed, search the entire C drive can not be found, this is why?
Reply to discussion (solution)
Loaded Configuration File is this
Everyone in the work is how to upload files via FTP to the server, I found a lot of examples on the Internet, not a successful, to support the SFTP, I hope the good-hearted people can help me
Reply to discussion (solution)
PHP is available
I'm using PDO, I can't use the MySQL function.
How to get the first piece of data and 4th 7th data.
Reply to discussion (solution)
What is the table structure and what is the sort basis?
Sort of no basis I can't write with limit.
Are you
Because the website needs, I want to introduce the www/includes/application_top.php in the www/sub/sub.php, but this will cause the path error, I use is zencart, ask this kind of situation how to do?
Reply to discussion (solution)
How many data is written to get the MySQL database table ... With PDO
Reply to discussion (solution)
$pdo = new PDO (' 127.0.0.1 ', username, password, dbname); $pdo->query ("SELECT count (*) from table_name");
Execute SQL directly with
So can I show you all the information for each row that I've queried? Why so much?
? Is it a bad thing? The original code is written by others, I just changed the next.
Reply to discussion (solution)
You turn this into a nested loop, it is
The original SQL statement is:
SELECT * FROM (SELECT DISTINCT *, Year (From_unixtime (time)) year, Month (From_unixtime (time)) month from a table WHERE ID = 1) as a WHERE Is_del =0 and year = 1 and month = 1 order by Time DESC
Now I want to
I want to implement on the server with PHP code implementation, the user name and password in the program, let the program to log in the background,
, automatically download the data from the background of the website, and then warehousing. For
1. Integrated environment Appserv.
2.php file, when Sogou compatibility mode, normal display.
3.html file, compatible with high-speed two modes, also can display normally.
Reply to discussion (solution)
Your src was wrongly written.
Image
The official Dedecms Backstage login cannot enter account Admin password admin in is blank page what hint also not ... What's the situation here?
Reply to discussion (solution)
PHP.ini set Display_errors=on, restart the server to see
The
Why do you want to close the connection once you've checked the connection once?
and upload pictures, there is a Imagedestroy function to release memory, if I do not release it, machine memory has been silly to keep the picture until the crash?
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