For beginners online, ask php to determine whether the form text is empty.
Html file
Php file
Require_once ("conn. php ");
$ Pictype = $ _ post ['pictype'];
If ($ pictype = "")
{Echo "no category filled ";}
Else
{
Operate BLOB fields in Mysql using PHP
1. BLOB field type in MySQL
BLOB fields are used to store binary data.In MySQL, BLOB is a type series, including TinyBlob, Blob, MediumBlob, and LongBlob. The only difference between these types is that the
The mysql Query statement does not solve the problem after an hour.
Table tb with a title field
There is a record for "two-day tour of Emei Mountain and Leshan quality"
Another record is "Shanghai two-day tour"
There is a fixed string: "Emei
I found a php-developed zlchat video conference on the internet. I could use my local network and put it on the server. what happened? after I put it on the server, the port was opened and added to the firewall. The server forwards data through an
PHP queries MSSQL. In MSSQL, field NAME, field content is Chinese, field type VACHAR (50), sorting rule: SQL _Latin1_General_CP1_CI_AS (this cannot be changed)
The PHP connection SQL queries other related content to show that the NAME can display
For more information about sessionid destruction, you can use session_set_save_handler to save session data to the database.
The problem arises. in the same browser, when the first user logs on, it is normal. when the second user logs on, I destroy
Discuz! Why can I upload the discuz.htm file? I recently studied discuz! But I cannot understand how he directly wrote the discuz.htm template after entering 127.0.0.1/forum.php. remember that this post must be justified. you cannot do anything
We were asked to write the entire website as PHP CLIshell for running. what should we do if we use a php shell running service in our project, we need to write the entire website like it;
He said that php shell is also written in php, and your
Php beginners help me to see why the while content is not executed. thank you. the following is my code:
$ Conn = mysql_connect ("localhost", "root ","");
If (! $ Conn)
Die ("cocould not connect:". mysql_error ());
If (! Mysql_select_db ("user2", $
Summary of the phase of web development (III) direct interaction between JS and PHP during the transformation of the company's projects, the interaction between js and php functions is often encountered, in fact, the designers of JS and php do not
Ajax is submitted. the backend cannot write code. ajax can be submitted to the backend. the backend can also obtain submitted data and directly output the data. However, if you write other processing code, you cannot output json.
$ (Document ).
Ajax uploads the content of the editor to php, and the php code is incomplete.
var cont=UM.getEditor('myEditor').getContent();alert(cont);$.ajax({type: "POST",url : 'a.php',data: 'content='+ cont,dataType: "html",async:false,success:
PHP Cache file cache
1. php file cache content storage format There are three main formats for saving php file cache content:
(1) var_export is formatted as a normal value assignment format in PHP;
(2) the variable serialize is saved after
The php instance code for querying IP138IP addresses is as follows:
$ Ip = "www.jb51.net"; // $ ip can be changed to another domain name or ip address.$ Source = file_get_contents ('http: // www.ip138.com/ips.asp? Ip = '. $ ip.' & action = 2 '
PHPxml_parse_into_struct function detailed parsing function prototype: int
Xml_parse_into_struct(Resource $ parser, string $ data, array & $ values [, array & $ index])
Parameter description: @ param --> $ parser XML parser, which generates an XML
Php static pages currently, the CMS system mostly uses static pages. the advantage of doing so is: first, it can reduce the burden on its server, and second, it is because HTML static pages are generated, therefore, their websites are more likely to
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