Database Solution-php Tutorial

Source: Internet
Author: User
Database my database filter function does not work, how should the database be set? urgent ------ solution ------------------ the data filter is the cornerstone of WEB application security in any language or platform. This includes testing the data input to the application and the data output from the application. a good software design can help developers: ensure that data filtering cannot be bypassed, make sure that invalid information does not affect valid information and identifies the data source. About databases
My database filter function does not work. how should I set the database? urgent?

------ Solution --------------------
We have said that data filtering is the cornerstone of WEB application security in any language and platform. This includes testing the data input to the application and the data output from the application. a good software design can help developers:
Make sure that data filtering cannot be bypassed,
Make sure that invalid information does not affect valid information and identifies the data source.
There are a variety of ideas on how to ensure that data filtering cannot be bypassed, and two of them are more common and provide higher level of protection than others.
Specific Method: http://www.phpnewer.com/index.php/Dmaq/detail/id/268
------ Solution --------------------
These two functions can save you,
PHP code
$ Colname_rs = (get_magic_quotes_gpc ())? $ _ GET ['id']: addslashes ($ _ GET ['id']);

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.