Skip to main content

Timeline for Extended PDO class for MySQL

Current License: CC BY-SA 3.0

5 events
when toggle format what by license comment
Jan 21, 2021 at 19:25 vote accept Tom
Jan 21, 2016 at 18:19 comment added Tom Yeah, I wanted to do that at first, but I couldn't figure out how I would go about doing that, so I decided against it, which I know wasn't smart.
Jan 21, 2016 at 18:13 comment added tim @Tom Well, as to doing it right: At a minimum, you really need to recheck the security of your code (when doing this, always consider two things: How will a user generally use my code (this must be secure), and how can a user mess up (which ideally should still be secure)). But like I said, I don't really see the value of your current approach. If you're still learning, I think implementing that function yourself would be a great exercise. It shouldn't be that difficult (you just need to build the :var1, :var2, ... or ?, ?, ... string dynamically, depending on the size of the values array)
Jan 21, 2016 at 17:55 comment added Tom Thanks for the feedback, it is still a work in progress, so yeah. It is also my first actual class that I am working on, so I was more wondering whether I am doing it right or not. One more thing is, how do I implement the public function queryInsert($tableName, $insertKey, $insertData) throws PDOException in the class?
Jan 21, 2016 at 17:07 history answered tim CC BY-SA 3.0