Jump to content

Question about SQL injection and mysql_query


svivian

Recommended Posts

I keep hearing about SQL injection attacks where someone submits

'; DROP TABLE x;

in a form where the variable will be used as part of a WHERE clause.

 

But the mysql_query() function clearly states that it must have only one query - "multiple queries are not supported". So does this mean SQL injection attacks are not possible, even with unescaped data?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.