The last step is to display it.The following program is called through parameters.For example, php. php? Jpg = jpgJpg is the name of the table. Remember this. Otherwise, the program will fail and an error will be displayed.You can change the following program. In this way, it will be more beautiful.The following is the source program:Mysql_connect ("localhost", "username", "password") or die ("unable to connect to the database! ");$ Query = "SELECT id, url, mess, fromx, url1, mess1, fromx1, url2
after showing 5, superfluous plus ... After the last one. The specific code is as follows:
StringBuilder sbr = new StringBuilder ();
int itotalcount = Pagelogic.querynewscount ();
int ipage = 1;
if (request["p"]!= null) {ipage = Convert.ToInt32 (request["P"]);
int ipagecount = 5;
int itotalpage = Itotalcount/ipagecount;
if (itotalcount% Ipagecount > 0) {itotalpage = 1; } if (
Source: Osso Network
Desktop Center (iv) data display
Author: elong
The last step is to show.
The following program is called by parameter.
Like Php.php?jpg=jpg.
The following JPG is the table name. Remember that you must, or you can not run, will show a program error.
You can change the following procedure. This will be more beautiful.
The following are the source programs:
?
mysql_connect ("localhost", "username", "password") or Die ("Cannot join database!");
$query = "Select Id,url,mess,fr
The last step is to show.
The following program is called by parameter.
Like Php.php?jpg=jpg.
The following JPG is the table name. Remember that you must, or you can not run, will show a program error.
You can change the following procedure. This will be more beautiful.
The following are the source programs:
?
mysql_connect ("localhost", "username", "password") or Die ("Cannot join database!");
$query = "Select Id,url,mess,fromx,url1,mess1,fromx1,url2,mess2,fromx2,url3,mess3,fromx3 from $jpg";
getpackageinfo process.I have encapsulated the package loading process into a class. The code of the entire program is as follows:{*************************************** ********************************}{}{Dynamically Loaded package class}{}{Wr960204 (Wang Rui) 2003-2-20}{}{*************************************** ********************************}Unit UnitPackageInfo;InterfaceUsesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,Dialogs, StdCtrls;TypePIDEInfo = ^ TIDEInf
§ 2-3
In study Note 2, we finally implemented this function: In the listening method, obtain the page to be redirected, set a property value for that page, and finally return the Page Object, to achieve the jump and value transfer function. The following describes how to obtain the jump page class in the page component configuration file.The Home. PageModify home. JavaPackage com. simpleform. pages;
Import org. Apache. tapestry. ipage;
Import org. Ap
size. Each The physical address of the first page of a page is an integer multiple of the size of the page.
Structure: In the I block linked list, num indicates the number of page blocks whose size is (2 ^ I), and address indicates the first address of the page block whose size is (2 ^ I.
3. Memory Allocation and release of partner systems
When directed to the kernelRequest allocation(2 ^ i-1),2 ^ I]When the number of page blocks is 2 ^ IPag
path
By default, the path to this method is: WEB-INF/classes. It has been tested in Tomcat.
5. Read the relative path of the file to avoid hard encoding and absolute path usage. (From Network)5.1 use the di mechanism of spring to obtain files and avoid hard coding.Refer to the following connection content:Http://www.javajia.net/viewtopic.php? P = 90213 5.2 read configuration filesRefer to the following connection content:Http://dev.csdn.net/develop/article/39/39681.shtm5.3 read an XML file thro
connection Content:Http://dev.csdn.net/develop/article/39/39681.shtm5.3 Read an XML file from a virtual path or relative path, avoiding hard-codedRefer to the following connection Content:Http://club.gamvan.com/club/clubPage.jsp?iPage=1tID=10708ccID=8Common operations for files in 6.Java (copy, move, delete, create, etc.) (from the Network)Common Java File Operation classesHttp://www.easydone.cn/014/200604022353065155.htmJava File Operations Encyclop
King (ifriend), Oriental Antivirus King (IKV), Oriental Web page Wang (ipage), etc., For personal mobile Office, information localization, as well as education and entertainment product line, will also be a full implementation of the product "I", so that users directly through these software to use the entire Internet to achieve their own purposes, rather than face a Web site.
After two months of launching the "I Software" campaign, Daming Tai its f
/classesThe default path for using this method is: web-inf/classes. has been tested in Tomcat.5. Relative path when reading files, avoid hard coding and absolute path use. (from the network ) 5.1 Take the Spring di mechanism to get the file, avoid hard coding. Refer to the following connection content: http://www.javajia.net/viewtopic.php?p=90213 5.2 configuration file read reference the following connection content: http://dev.csdn.net/develop/ Article/39/39681.shtm 5.3 Reads an XML file from a
indicates that this parameter is required and must be provided.First, the template of this control is
Copy; ---- copyright information (required by the semicolon) Nbsp; --- SpaceBytes ---------------------------------------------------------------------------------------------------------------------------Custom components:HTML file write information displayed by yourselfYou do not need the @ symbol, directly After the component is written, you must register it in the namespace.On the executio
= intval (trim ($ _ GET [" ipage "]); $ this-> ipage = $ tmp_page> 1? $ Tmp_page: 1; $ this-> pagestr = $ pagestr;} function cut_str () {$ str_len_word = strlen ($ this-> pagestr ); // obtain the total number of characters obtained using strlen $ I = 0; if ($ str_len_word
The above cutpage class can handle content paging very well and handle different html tags, causing paging troubles. If the content has
paging method provides accurate paging, but requires manual addition of paging characters, resulting in heavy workload.
Automatic paging: The PHP program will paginate the content based on the configured pagination character and then generate different static pages. This method is highly efficient and requires high requirements for processing tags of different html codes.
Front-end JS paging: uses Javascript to intercept long articles and display different sections based on requests to achieve
different HTML code tags.
Front-end JS paging: Use JavaScript to intercept the long article content, according to the request to show different segmented content, to achieve the paging effect. This method will read the content at once, by the front-end JS processing paging, experience good.
The example code in this article explains the use of PHP to page long article content, automatic and manual paging. As for generating static HTML pages is not covered in the scope of this article, we will sp
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.