I
I
IsaevDev2017-04-24 19:35:22
PHP
IsaevDev, 2017-04-24 19:35:22

Is BEM applicable to MySQL?

Are the fields in the table named according to the pattern table_name__cell_name__type, for example users__banned__flag, so that PDO can figure out which table the value is in when joining and how to secure the data?
Is it applied or bicycle?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
index0h, 2017-04-24
@index0h

14132802653482.jpg

S
sim3x, 2017-04-24
@sim3x

ORM is used for this.

F
FanatPHP, 2017-04-25
@FanatPHP

I can answer for PDO.
1. PDO has nothing to do with requests. PDO does not write SQL for you, nor does it make it secure. You can name the columns whatever you want, PDO is a no-brainer.
2. To secure data, you should use **prepared expressions.**

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question