Home > Backend Development > PHP Tutorial > JAVA/JSP Learning Series 6_PHP Tutorial

JAVA/JSP Learning Series 6_PHP Tutorial

WBOY
Release: 2016-07-21 16:11:23
Original
903 people have browsed it


1. Preparation before operation

Download the jdbc driver of mysql (a jar file) and load it in CLASSPATH (see "JAVA/JSP Learning Series One (JDK Installation)" for the method)

( If you can’t find it, please download it from this site)

Build a MySQL database test

There is a table in the database: note, the field is: name (varchar)

2 , download, install



intPageCount) intPage = intPageCount;

%>

















Name



0)

{

//Position the record pointer to the first record of the page to be displayed

sqlRst.absolute((intPage-1) * intPageSize + 1);

//Display data

i = 0;

while(i















Page of Pages

">Next Page

1){%>">Previous page







3. How to run it?
(Source: viphot.com)

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/313974.htmlTechArticle1. Before running, prepare to download the jdbc driver of mysql (a jar file) and load it in CLASSPATH (for the method, see " JAVA/JSP Learning Series One (JDK Installation) 》) (If you can’t find it, please download it from this site...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template