Help to see why you can't go to

Source: Internet
Author: User
$sql = "SELECT * from Tb_order where orderusernc= ' $unc ' the ORDER by id desc limit $kaishi, $pagesize";//Get the record starting from the calculated initial value, altogether $pages Ize strips
$result =mysql_query ($sql);//Get Results
while ($row =mysql_fetch_array ($result))
{
echo "\ n ";
echo "". $row [' OrderNo ']."";
echo "". $row [' ORDERUSERNC ']."";
echo "". $row [' username ']."";
echo "". $row [' address ']."";
echo "". $row [' YB ']."";
echo "". $row [' Tel ']."";
echo "". $row [' TT ']."";
echo "". $row [' Goodsprice ']."";
echo "". $row [' RecType ']."";
echo "". $row [' PayType ']."";
echo "". $row [' Addtime ']."";
echo "Payment";
echo "\ n ";
}
Point payment is still on this page


Reply to discussion (solution)

$sql = "SELECT * from Tb_order where orderusernc= ' $unc ' ORDER by id desc limit $kaishi, $pagesize";
Query requires parameter $unc

Only such connections are in the page
echo "Payment";

There are no only paging parameters

$unc the contents and pagination of the loops I have defined can be used
All Products

Connecting to a database
Require_once ' conn.php ';
Session_Start ();
$unc =$_session[' UNC '];
$orderno =$_get[orderno];
$sql = "SELECT * from Tb_order";
$result =mysql_query ($sql);//Get Results
$num =mysql_num_rows ($result);
$pagesize =5;//Set the number of records per page
$pages =ceil ($num/$pagesize);//Get Total pages
if ($pages <1) {$pages = 1;} Set the total number of pages at least 1 pages
$page =$_get[page];//Get the number of pages passed over
if ($page > $pages) {$page = $pages;} If the number of pages passed is larger than the total number of pages, let it be equal to the total number of pages
if ($page <1) {$page = 1;} If the number of pages passed is less than 1, let him be equal to 1.
$kaishi = ($page-1) * $pagesize;//prepare for the next step, the initial record of limit

The main or echo "payment"; there's no problem here. I'm not going to have to go to the page without paging.

All right! You don't have to use it, you have to use it, but you don't stick it.

What's so useful, the code is on the page.

Look at the landlord's single and double quotation marks to see good dizziness
Why don't you try this?
echo ' payment ';

echo "Payment";

Instead, just leave this sentence to look at. I'm guessing you have a problem with your previous echo HTML. Single-and double-lead collisions.

The amount has been settled.

  • Related Article

    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.