Results 1 to 6 of 6
  1. #1
    Senior Member
    Join Date
    Jun 2016
    Posts
    196

    How to prevent SQL Injection in mysql?

    Hello Guys,
    I have heard about SQL injection, that is a very dangerous thing that can harm the database. so i want to know how i can prevent sql injection to infect my database via my php page. I'm using MySQL database with PHP extension mysqli

  2. #2
    Registered User
    Join Date
    Sep 2016
    Posts
    31
    you can make them in SQL forum

  3. #3
    Registered User
    Join Date
    Feb 2014
    Posts
    467
    Prepared Statements do not combine variables with SQL strings, so it is not possible for an attacker to modify the SQL statement.

  4. #4
    Registered User
    Join Date
    Jul 2016
    Location
    UK
    Posts
    25
    I have no ideas about this.

  5. #5
    Junior Member
    Join Date
    Sep 2016
    Posts
    18
    Working with SQL statements, you absolutely not be added to the parameter string you for user input.
    You must remove the special characters used in the query

  6. #6
    Senior Member
    Join Date
    Jan 2016
    Location
    India
    Posts
    373
    What happens is that the SQL statement you pass to prepare is parsed and compiled by the database server.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting


Premium Partners:


Visit forums.thewebhostbiz.com: to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.