Minor problems encountered during secondary development of discuz. I want to add a field when the user registers in discuz. The problem is that I cannot find the insert statement of discuz. What can the hero do for you? ------ Solution --------------
Opened the monitor with a command: PHP artisan queue:listen
This is the handle method in my job class.
public function handle() { $res1 = DB::table('log')->insertGetId( ['op' => 1] ); }
is to insert a piece of
1 configure DNS
VI/var/named/yesgo. Loc
# Append the following line. Of course, you can customize other aliases or host names.
MySQL in cname ns. yesgo. loc.
/Etc/rc. d/init. d/named restart // restart the DNS ServiceNSLookup // test whether the
MySQL backup tool-mysqlhotcopy
Mysqlhotcopy uses lock tables, flush tables and cp or scp to quickly back up the database. it is the fastest way to back up a database or a single table. It is a physical backup, but it can only be used to back up the
Compared with Microsoft's LINQ-to-SQL or EF framework, "Hibernate is not easy for eclipse Integrated Development". The following are the steps for beginners:
I. preparations:
1,First download eclipse (Official Website http://eclipse.org/) Note:
This
Program It can be used to browse Mysql Data. You can make some modifications to make a good MySQL browser.
*/
/*? Cmd = DB? Cmd = TABLE & DB = {}? Cmd = Record & dB ={}& table = {}*/
$ Host = 'localhost ';$ User = 'test ';$ Password = '';
In discuz, the database is used: Function. the code is as follows:
init();$squery=DB::query("SELECT catname FROM".DB::table('portal_category')); while($value=DB::fetch($squery)){$data[]=$value;}print_r($data);?>
Yes. I don't know why I am
How can I run a PHP function in an SQL statement to limit the query results? Please help. The purpose of the program is to execute the SQL statement first and then display the query results. However, if the query is performed and the result is
If you have any questions about Discuz, come in. I used DZ in a rough way and did not use its functions carefully, but now I have studied its code. in some cases, you may not be able to see the meaning of the code.
People who want to write this code when they see the program.
PHP Code
if ($server > 0) {if (empty ($dblist)) {$dbs = Mysql_list_dbs (); $num _dbs = mysql_numrows ($dbs); } else {$num _dbs = count ($dblist); } for ($i =0; $i
Data Model of extjsBlog type:
Extjs
1. Create a model
Java code
// We use Ext. Define to create our model class.
// DB table person (name, age, email)
Ext. Define ("person ",{
Extend: "Ext. Data. model ",
Fields :[
{Name: 'name', type:
How to view the Client IP address, machine name, MAC address, login name, and other information
Select S. session_id, S. login_time, S. host_name, P. loginame, S. program_name, C. client_net_address, C. client_tcp_port, p.net _ address as client_mac_
Linux is not specifically designed for MSSQL access to the library, but between the MSSQL is derived from Sybase, so access to Sybase's library can naturally access Mssql,freetds is such a realization.Perl typically uses DBI to access the database,
Go out security considerations, the default MySQL is to allow only native links, and not allow other hosts to connect through the client tools. To resolve this problem at this point, there are three ways to resolve it.
A, authorized logins to other
A few common knowledge about MySQL permissions:
1, MySQL's permission system is mainly used to verify the user's operating rights.
2, within the MySQL, the authority information stored in the MySQL database granttable. When MySQL is started, the
The server operating system I use is Ubuntu 12.04 64-bit LTS with 512M memory and no virtual memory enabled. After optimization, server memory generally occupies between 256m-378m, and stable operation. So, I should like to share my configuration
Methods of PHP pages//jquery Paging Public functionJqpage () {//Receive current page $p= Request::instance ()->param (' page '); $page=Empty($p)? 1:$p; //find the total number of bars $count= db::table (' user ')Count(); //set the
php5.3New features 1. Support Namespaces (namespace)5.3 ago
Copy Code code as follows:
class Zend_db_table_select {
//Indicates that the current class file is located under Zend/db/table
}
5.3
Copy Code code as follows:
namespace Zend/
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.