Jump to content

framework and prepared statement


cypher86

Recommended Posts

hi there,

i'm considering using one framework in order to migrate an "home" application in a more professional one.

so i have 2 questions for you:

1) which framework?(never used one, i always programmed with notepad++)

2) when i create a query does a generic framework take care trasforming it in a prepare statement or there still be the problem with injections?

3) what about security in general using a framework??(xss, sql injection, .....)

Link to comment
https://forums.phpfreaks.com/topic/252103-framework-and-prepared-statement/
Share on other sites

1) If you've never used a framework, then you can't go wrong with CodeIgniter. It has the best documentation by far, and is generally pretty beginner friendly - plus it's awesome.

 

2) Yes, generally SQL injection isn't an issue.

 

3) Most frameworks have lots of functionality that make security a lot easier and safer. Remember that frameworks are community driven, so security holes are usually found and patched quickly.

does the framework deal himself with the prepared statement or i have to prepare the statement myself and then feed it to the framework?

 

Like I said, you still need to know how to program.

 

we don't get each other.......

i still have to do

$sql->prepare(query)
$sql->bind_param(param)
$sql->execute()

 

or it does that automagically?

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.