Re: Data Module using MySQL
Posted by: Fernando Gonzalez Sanchez
Date: April 29, 2013 01:04PM

Hi,

In Connector/NET you can only run a query per connection, you if you want to run multiple queries, you'll need a different connection per each one.

SQL injection is a delicate topic, to understand the concept, check this article for example:
http://www.tizag.com/mysqlTutorial/mysql-php-sql-injection.php

Now the ways to prevent it are
- Sanitize your inputs (ie. make sure an integer to be contatenaced to a sql string is actually an integger, like running Int32.TryParse() before concat).
- Use stored procedures and send as argument any user input.
- Use prepared statements.

Some official recommendations against SQL injection for MySql: http://dev.mysql.com/tech-resources/articles/guide-to-php-security-ch3.pdf

Thanks.

Options: ReplyQuote


Subject
Written By
Posted
April 27, 2013 05:53AM
Re: Data Module using MySQL
April 29, 2013 01:04PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.