PHP randomly generates a random number. the target value of the random number just came into contact with PHP yesterday. you can use a PHP code to randomly generate a random number and insert it into the database. The structure is as follows:
Table
The final result of mysql inserting a data item into the database is fail.
OrderNo is an auto-increment order number, but I won't, so I just assigned a value.
Session_start ();
$ Corn = mysql_connect ('localhost', 'root ','');
Mysql_query ('set
I usually use mysql or mysqli. why is there mysqli?
Reply to discussion (solution)
Mysql _ series functions are discarded in the new version of PHP, and mysqli is obviously recommended.
Mysqli is object-oriented and can also be
How does js obtain the value in ueditor? I want to use $ post of ajax to send a value to the server, and how can I get the value in ueditor? the page load code is as follows:
How to improve the efficiency of login verification
$ _ COOKIE is used for login.
An identifier ($ identifier) and a token ($ token) are automatically generated and saved
$ _ COOKIE ["auth"] = $ identifier. ":". $ token; encryption is enabled.
In the linux + apach + mysql environment, in addition to accessing the home page, all other pages report errors of 404 (centos). in windows, this is all possible, in addition, some static url items were configured on the linux server in the early
The difference between apache address rewriting on linux and windows XP is that on windows
RewriteCond % {HTTP_HOST} ^ ([^ \.] +) .test.com $
RewriteRule ^ (. +)/(. +) \. html $ % 1/base/ss $1 @ $2. html [PT]
RewriteRule ^ (. +). html $ index. php/$1
Nginx thinkphp environment, error 500
Today, the website is placed in the centos environment under nginx. The program is thinkphp3.2. the homepage is displayed normally. all inner links are Error 500, and the configuration code and error log are
Description of the problem about the running permission of LinuxPhp:
The user who executes httpd is the httpd user group to which httpd belongs.
DocumentRoot:/webroot httpd drwxrwx ---
/Webroot/index.html httpd-r --------
/Webroot/index. php httpd-
Apache and php installation problems apache configuration php module:
LoadModule php5_module "D:/php/php-5.5.14/php5apache2_4.dll"
PHPiniDir "D:/php/php-5.5.14"
AddType application/x-httpd-php. html. htm. php
When you run httpd-k install, the
I am familiar with the database and PHP is also a newbie to the problem of reading oracle Chinese query by PDO. Currently, when PDO is used to remotely access the oracle database, the table header is in Chinese and no query results are displayed.
How does php determine that a user has logged on to a website recently and has encountered a problem after login registration? How does it know whether the user has logged on to the website? Do I need to add fields to the database for configuration?
How is the database designed for the message board in the QQ space? I don't know the database design of the QQ space? Can any friend receive an unlimited number of replies?
Reply to discussion (solution)
Reply ID reply_id,Post ID
Ubuntuservice cannot connect to Mysql. ubuntu service 12.04 is used. apache installation is normal. web pages can be accessed. mysql servers can be accessed by commands on their local machines. But the following database connection code won't work.
Phpcms Image uploading fails. my problem is this.
Once I was unable to upload the image, I checked the modification method on the internet. after the modification, the image can be uploaded to the specified directory.
However, the list is empty and
The destoon replication module reports an error in mysql. please solve MySQL Query: SELECT * FROM [pre] vipcenter_25 WHERE status = 3 ORDER BY LIMIT
MySQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL
Phpwind image upload problem! No images are found on the server.
Reply to discussion (solution)
Directory write permission?
Directory write permission?I have no permission to report the error, but I have not uploaded the image on the server.
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