Posts by Ankology • 46 points
4 posts
-
0
votes2
answers174
viewsA: How to transform multiple JSON into only valid JSON with json_encode in PHP
The declaration of the variable $ramos in your code can be undefined depending on the result of the execution, generating a possible error, otherwise the code seems to be ok. I edited your code by…
-
0
votes3
answers84
viewsA: how best to make a case_sensitive query
Short answer: it is correct and it is not, it depends on the need. In your case, dealing with user and password, it would be better to validate the data entry with a specified pattern, user names…
-
1
votes1
answer57
viewsA: Transaction in different banks
No way! Not even if your user has permissions in both banks and are on the same server! What you can do in this case is work with two different connections and treat them separately as needed.…
-
2
votes0
answers607
viewsQ: PHP PDO connection with static variable in class
I did a research on connections using Singleton in PDO, in most people use a private or protected Construct so that if there is no connection the same is created when instantiating a new Class(),…