thinkphp upload image successfully, but database field content is null
thinkphp upload image successfully, but database field content is null
Public function upload () {
Import (' ORG.Net.UploadFile ');
$upload = new UploadFile ();//instantiation
Constructor problem???
Presumably, the class B method uses a lot of object instances of Class A, so I instantiate class A directly inside the class B constructor.
Class a{Public $mes = "OK";}Class b{Public Function __construct () {Many of the
Recently in the development of background management, want to ask how to do the ad schedule table?
Similar to such a form, is it a JS plugin or PHP program to draw?
If it is written in PHP. How about the specific ideas?
Share to:
Web page Data Preservation Method--PHP development
Little brother is doing a website, using PHP development;
Divided into 3 pages, each page will let users fill in some of the content;
Need to set up a database to save the user's settings on page 3
MySQL statement puzzled
$sql = "SELECT * FROM news where id = '". $_get[' id ']. "'";
$query =mysql_query ($sql);
$rs =mysql_fetch_array ($query);
The above query statement why this write error $sql= "SELECT * FROM news where id = $_get[' id ']";
Asking questions about array output
This post was last edited by redirggg on 2013-07-04 11:55:04
Array( [Issuccesfull] = 1 [Results] = = Array ( [Singleresul] = = Array ( [0] = = Array
In the current development of small and medium-sized web sites, what kind of calculation is used to connect MySQL database?
It's a traditional MySQL function.
or the MYSQLI function.
Or the method of the PDO interface.
What are the characteristics
Ask the great god about loading and unloading problems
Download and download of PHP.
My LAN upload a 100M file, and then move to a path below, the total time is almost 12 seconds (PC machine Server), that is, can reach 8M per second, the time is
File_exists has never existed.
It doesn't exist with Is_file.
$path = "Http://localhost/IMAGES_951234567/1372.jpg";
if (Is_file ($path)) {
echo "exists";
}else{
echo "does not exist";
}
Always shows that there is no
I hit this address on the
echo Problem Solving
echo "
keywords)." \ "/>";
What is the meaning of \ and \ In this code? What's the point of having so many numbers?
Share to: keywords)."\"/>";这句代码中的..." data-pics="">
------Solution--------------------\ is used to escape,
How to read someone else's code to reap the most?
How to see people's code to receive the most? What are the high-quality PHP classic open source code? There is a certain basis, how to improve their ability?
PHP
someone else's code
code Reading
Ecshop Product Description Add a new field
I add in the product description of the Ecshop in the database Add the new field, the description of the new content can be displayed, but it is not possible to update the cache, meaning that I deleted the
Message board Questions Help
First ask a question about garbled,
The [client] Default-character-set=utf8 [mysqld] Default-character-set=utf8 is set in My.ini and the wamp,phpmyadmin is not connected, it is # 2002 that socket error prompt, and then I
Want to do a shipping function, one to lose more than 1000 express number, please give a thought
Want to do a shipping function, one to lose more than 1000 express number, please give a big idea
I just want to show each record plus a list box
Wamp failed to boot and found that Apache was not booting.
At first it was a apache403 error, and then in the config file, check the Apache configuration file httpd.conf first.
Find deny from all to allow from all
The Deny in phpMyAdmin also changed,
How does the PHP search page implement categorical retrieval?
This post was last edited by u010572351 on 2013-06-22 10:09:22
Is this, a mall or movie station, I now need to conduct various searches, such as
Separate, search by type, will
A separate,
PHP Upload file problem
Title mainly want to solve the problem of uploading duplicate file name files to use the file name before the time to resolve but reported waring problem code
if (file_exists ("upload_jpg/". ") 1 "." /" . $_files["File"
Ask for a file download error problem
A site is mainly to provide attachments to download the resource station, download attachments Sometimes, sometimes impossible
Look, when the download is unsuccessful, the page returns, Error_internet_connection_
Two conditions limit when registering a user
I have designed a teacher registration information function. The teacher needs to enter the corresponding name and employee number in the database to be able to register successfully, the problem is, if I
On the problem of buildhtml under thinkphp
I'm a newbie, I don't know a lot of things, huh?
$this->buildhtml (' 1 ', Html_path. /', ' Index ', ' utf-8 ');
The above sentence is what I saw on the internet, it is to use thinkphp to generate HTML but I
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