Paging Operations Database

Source: Internet
Author: User

First select the library test1,01.php and then use show tables, query out all the tables, then use the loop to output all the table names, and manipulate the hyperlinks, Hyperlinks on the table should be the information to 02.php,02.php, according to the parameters received, query to the table, and then use the DESC table name, the result Loop output table field name, and then query out all the fields of the output corresponding value, followed by the operation of hyperlinks, the data stored in the row, Uploading to 03.php.03.php can change

01.php

<?php$conn=mysql_connect ("localhost", "root", "111111"), mysql_query ("Set names UTF8", $conn);//Set Encoding mysql_query (" Use Test1 ");//Select Library $sql=" Show Tables "; $rs =mysql_query ($sql, $conn);? ><!doctype html>

02.php

<?php$conn=mysql_connect ("localhost", "root", "111111"), mysql_query ("Set names UTF8", $conn);//Set Encoding mysql_query (" Use Test1 ");//Select Library $table=$_get[' table '];//receive data addslashes ($table); $sql =" select * from ". $table; $rs =mysql_query ($sql, $ conn); $sql = "desc". $table; $ziduan =mysql_query ($sql, $conn);? ><!doctype html>

03.php

Pending

Paging Operations Database

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.