It has been hard to understand exception handling. for example, my program uses a mysql database connection at the underlying layer, and all my upper-layer programs are built on this basis (without considering caching or other issues ), for example,
PHP Database Insert data problem, die or die plug in, seek the guidance of the Great God
This post was last edited by Hipyaohop on 2013-06-28 10:12:39
jquery Code:
$ (". Detailtextable"). Click (function () {
$s _keshi=$ (". Cla_title"). attr ("alt")
Question about die & lt ;? Phpecho 'Fuck '; $ db = mysql_connect ('localhost', 'bp6am', '000000') & nbsp; ordie ('unabletoconnect.'); & nbsp ;? & Gt; this is my code. if there is no echo, it's about die.
Echo 'fuck ';
$ Db = mysql_connect
Question about die & lt ;? Phpechofuck; $ dbmysql_connect (localhost, bp6am, 123) & nbsp; ordie (Unabletoconnect.); & nbsp ;? & Gt; this is my code. if there is no echo, the whole webpage is HTTPError500 (InternalServer's question about die ).
Echo
The question about die
echo ' Fuck ';
$db =mysql_connect (' localhost ', ' bp6am ', ' 123 ')
Or Die (' Unable to connect. ');
?>
This is my code.
Without echo, the entire Web page is HTTP error Internal Server error, and what does this die do here?
Concrete Example 1. PHP Server ComponentsFor beginners, it is recommended to use the integrated server component, which already includes PHP, Apache, Mysql and other services, eliminating the time spent by developers in the tedious configuration
Upgrade to CentOS 7, want to install a MySQL, be told:"Sorry, I didn't notice you are CentOS7, as another Netizen said, after MySQL was acquired by Oracle, the CentOS community was concerned about the copyright or its features of the successor
1: mysqlmemcachedUDF uses libmemcached to use a series of memcache functions. Through these functions, you can perform get, set, cas, append, prepend, delete, increment, decrementobjects operations on memcache, if we use these functions through
MySQL master copy
How to install MySQL database, here do not say, only to say that its master-slave copy, the steps are as follows:
1, the master-slave server for the following operations:1.1, consistent version1.2, initialization of the table,
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.