In fact, it is obtained from the discuz backend and directly uses pseudo-static rules. you can choose based on the version used by your server. if it is a virtual host, you need to consult the server provider. ApacheWebServer (Independent host user) IfModulemod_rewrite.cRewriteEngineOnRewriteCond % {QUERY_STRING} ^ (. *) $ Rewri
It is actually fromDiscuzIf you win the rules in the backend, you can select a version based on your server. if you are a VM, you need to consult the server provider.Apa
object, where:
⑴ each form corresponds to a unique identifier called a FID, in order to make the value unique to use a single counter.
⑵ each time a form is successfully committed, it must store its FID in a Dictionary object.
We use a dedicated process to initialize the above data. Although each subroutine will call it later, it is actually executed once per session:
Sub Initializefid ()
If not IsObje
. Name this field Fatherid. such as the ID2 here, its fatherid is ID1. In this way, we get the data table definition for the classification catalog:
Createtable[catalog] (
[ID] [INT] Notnull,
[Name] [nvarchar] (50) Notnull,
[Fatherid] [INT] Notnull
);
Agreement: We agreed to use-1 as the first layer of the classification of the Father code. The category is numbered-1. This is a virtual classification. It has no records in the database.
How to restore a tree
The biggest advantage of the catal
This article describes an easy way to prevent users from submitting the same form multiple times during the current session in an ASP application. It is mainly composed of four subroutines, in a simpler application, you simply put the code in the containing file directly referenced can be, for those more complex environment, we at the end of the article to give some suggestions for improvement.
First, the basic work process
Let's discuss the four subroutines in turn.
(i) initialization
Here we w
suitable, so they can only be read using low-level commands. (Of course, you can skip the comment and directly use advanced commands to read data, that is, [A B CD] = textread (filename, '% F % F', 'headerlines', 4 );). A simple and non-generic method for reading comments is as follows:------------------------------------- ConvertBytes ---------------------------------------------------------------------------------------
Code:CLC; clear;FID = fopen(
which node this taxonomy belongs to. Name this field Fatherid. such as the ID2 here, its fatherid is ID1.
In this way, we get the data table definition for the classification catalog:
Create Table [Catalog] (
[ID] [int] not NULL,
[Name] [nvarchar] () not NULL,
[Fatherid] [INT] Not NULL
);
Agreement: We agreed to use-1 as the first layer of the classification of the Father code. The category is numbered-1. This is a virtual classification. It has no records in the database.
How to restor
data types are different, so I will not elaborate on them here. If you need them, Baidu ~
1. Create the simplest table
Suppose: we define a name
T_Person table. The table has three fields: FId (person id) and FName (person name)
FAge (age of a person), data types in sequence: integer, uncertain length string type, integer
The SQL statement is as follows:
Create table T_Person (FId INTEGER, FName VARCHAR
: delete from t_psi_user where FID = @ FIDInsertquery attributes: insert into t_psi_user (FID, fusername, fpassword) values (newid (), @ fusername, @ fpassword)Selectquery: Select * From t_psi_userUpdatequery: Update t_psi_user set fusername = @ fusername, fpassword = @ fpassword where FID = @ FID(3) drag and drop a gr
and drop a SqlDataSource component, set a good connectionstring, naming components for dslist.
(2) Modify the DeleteQuery property of the SqlDataSource component to: Delete from T_psi_user where fid= @FId
The InsertQuery property is: INSERT into T_psi_user (FId, Fusername, Fpassword) VALUES (NEWID (), @FUserName, @FPassword)
SelectQuery is: SELECT * from T_psi_u
This article describes an easy way to prevent users from submitting the same form multiple times during the current session in an ASP application. It is mainly composed of four subroutines, in a simpler application, you simply put the code in the containing file directly referenced can be, for those more complex environment, we at the end of the article to give some suggestions for improvement.
First, the basic work process
Let's discuss the four subroutines in turn.
(i) initialization
Here we w
We encounter countless forms on the Internet every day, and most of them do not restrict users from submitting the same form multiple times. The lack of such restrictions can sometimes produce unexpected results, such as repeating a subscription to a mail service or repeating a ballot.
This article describes an easy way to prevent users from submitting the same form multiple times during the current session in an ASP application. It is mainly composed of four subroutines, in a simpler applicati
MATLAB has two types of file composition:1. File (m file);2. data file . opening and closing of files
File data formats are: binary format and text file . Open the file
FID = fopen (file name, open mode);' R ': Indicates read data for open file.' W ': Indicates write data to open file.' A ': Indicates that data is added at the end of an open file. Closing of files
Sta-fclose (Fid); Turn off read and write o
Send a PHP tree class tree for PHP
I often do infinite pole classification.
Need a tree of legendary data structures
But I got a look.
I can't seem to find the right one for myself.
I wrote one today.
Get the Sun.
Infinite Polar tree classes that require database support
I hope that all the friends to guide, add,
-------------Open Source Manifesto--------------
Open source brings us the need to reduce repetitive work
Achieve common improvement
PHP Code
' localhost ', ' db_user ' = '
Send a PHP tree class tree for PHP
I often do infinite pole classification.
Need a tree of legendary data structures
But I got a look.
I can't seem to find the right one for myself.
I wrote one today.
Get the Sun.
Infinite Polar tree classes that require database support
I hope that all the friends to guide, add,
-------------Open Source Manifesto--------------
Open source brings us the need to reduce repetitive work
Achieve common improvement
PHP Code
' localhost ', ' db_user ' = '
Colum input box is the role of the plug-in, but its return value is the ID, when the page is submitted we need to re-present user-selected sections to the user, my practice is to query the form submitted by the ID of the corresponding layout name name, when the controller received the ID value and non-empty, The name value corresponding to the section ID is rendered on the page at the same time. Since the Select2 plug-in is placing name names in the span element of the constructed inner layer,
As the leader in the relational database market, Oracla plays an important role. Although the operation is not as convenient as SQL Server, its powerful functions
In ORACLE, a statement block is used as a default transaction. That is to say, if you only execute a block of ORACLE statements, it is executed in the form of transactions by default.
Create or replace procedure sp_EditInlayOut (fid number, -- modify Record ID T_INLAYOUT table primary ke
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.