Hot answers tagged

4 votes
Accepted

Follow up to Validation Script in PHP

First query looks good. any more improvements I don't understand why you're even asking the question. What part of Sam's "use bound variables" answer was unclear? We start out with ...
J_H's user avatar
  • 13.8k
4 votes
Accepted

PHP Validation script

Use bound parameters in database queries In the answer to your previous question by Your Common Sense was this advice: in SQL, always use parameters instead of PHP variables for any database ...
Sᴀᴍ Onᴇᴌᴀ's user avatar
2 votes
Accepted

SQL & PHP login method

Yes indeed, your approach is severely outdated. Such a code nowadays is frowned upon. Here are some rules for the better code Each script should consist of four parts Initialization. Usually it's ...
Your Common Sense's user avatar
2 votes
Accepted

blog RESTFUL api with posts and comments

relation between post and comment in my opinion the relation between comments post is a composition and therefor it should belong to the post. ...
Martin Frank's user avatar
  • 2,706
1 vote
Accepted

PHP login codes suggestions

Nice to hear you got your code working. I will help you a bit with the validation script. These are the points of improvement: Your input filtering is not doing anything because you haven't specified ...
KIKO Software's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible