Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 2 of 2 FirstFirst 12
Results 16 to 24 of 24
  1. #16
    New Coder
    Join Date
    Oct 2016
    Posts
    28
    Thanks
    6
    Thanked 1 Time in 1 Post
    I thought the real solution (prepared statements) was already suggested.
    https://phpdelusions.net/pdo
    Freaking great article... I'm definitely switching to PDO and changing my code accordingly... Thank you a lot

  2. #17
    Master Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    5,122
    Thanks
    110
    Thanked 602 Times in 589 Posts
    Quote Originally Posted by tangoforce View Post
    What happens if i alter the username in the login form to a database command? - Thats called sql injection and can trash a website. You need to look into binding your variables so that they are available to the database when the query runs but not within the sql string itself.
    Quote Originally Posted by Thothlike View Post
    I thought the real solution (prepared statements) was already suggested.
    Nope... but thank you... I will definitely read up on it on the link you provided
    Well obviously since I didn't mention the idea of binding your variables when using the database and you clearly claiming I didn't.. it seems that I cannot help you any further.

    I did (did I not?) try to sway you right away in this thread.. but you refused to accept any of it. Only when Vege and benanamen have repeatedly shown you things have you finally accepted it. I did tell you that there are far more advanced coders out there who have thought of all of this on your behalf (and others) already.

    If you don't want to take my advice say so now so that I don't need to trouble you again in the future.
    Quote Originally Posted by deathshadow View Post
    So seriously, loosen up that tie, let out the belt, and try relating to normal people on the street instead of the gentleman's club crowd.

  3. #18
    New Coder
    Join Date
    Oct 2016
    Posts
    28
    Thanks
    6
    Thanked 1 Time in 1 Post
    Well obviously since I didn't mention the idea of binding your variables when using the database and you clearly claiming I didn't.. it seems that I cannot help you any further.

    Well just looked back, and you did... clearly I missed it... my mistake... no need to get offended about it...

    I did (did I not?) try to sway you right away in this thread.. but you refused to accept any of it. Only when Vege and benanamen have repeatedly shown you things have you finally accepted it. I did tell you that there are far more advanced coders out there who have thought of all of this on your behalf (and others) already.
    Yes you did... and no I refused nothing... and true not when you just said my code was unsafe... (and told me to bind my variables - which I clearly missed)... but when I got some actual help on the code from Vege (and again thanks dude/dudette... I honestly really appreciate it) I most definitely accepted it right away... and thanked him/her for it... and ment it...

    I don't get why you have the offended attitude you have... just because I didn't right away worshiped at the alter of you...
    Before this thread I didn't know you from a hole in the ground... and had no idea of your coding skills...
    But for the future... when a N00B like me ask for help... and asks questions back in an attempt to understand and not just do because some stranger on the internet told him too... take your own advise...
    Originally Posted by deathshadow
    So seriously, loosen up that tie, let out the belt, and try relating to normal people on the street instead of the gentleman's club crowd.
    And be nice about it...

    Peace out...
    Last edited by Thothlike; 05-19-2017 at 08:40 PM.

  4. Users who have thanked Thothlike for this post:

    tangoforce (05-19-2017)

  5. #19
    Senior Coder benanamen's Avatar
    Join Date
    Oct 2015
    Posts
    1,161
    Thanks
    2
    Thanked 122 Times in 118 Posts
    But for the future... when a N00B like me ask for help... and asks questions back in an attempt to understand and not just do because some stranger on the internet told him too... take your own advise...
    Originally Posted by deathshadow
    So seriously, loosen up that tie, let out the belt, and try relating to normal people on the street instead of the gentleman's club crowd.
    Quick, somebody call an ambulance. We have a burn victim!
    To save time, lets just assume I am almost never wrong.

    The XY Problem
    The XY problem is asking about your attempted solution (X) rather than your actual problem (Y). This leads to enormous amounts of wasted time and energy, both on the part of people asking for help, and on the part of those providing help.

    "This text has been encoded with ROT26. If you can read this you must have found a backdoor. Congratulations!"

  6. #20
    New to the CF scene
    Join Date
    May 2017
    Location
    Sunrise, FL
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Leave it to forums and text messages to prove that you don't need to speak a different language to misunderstand someone...

    James 1:19 - "My dear brothers and sisters, understand this: Everyone should be quick to listen, slow to speak, and slow to anger,"
    BTW: I'm new here and this was the first thread I read on this forum, hi guys/girls

  7. #21
    Master Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    5,122
    Thanks
    110
    Thanked 602 Times in 589 Posts
    Quote Originally Posted by Thothlike View Post
    I don't get why you have the offended attitude you have... just because I didn't right away worshiped at the alter of you...
    Erm nothing to do with worship.. it was to do with you denying that anyone had made a suggestion to you about prepared statements when I had. In effect you nullified my original (and first) attempts to help. Thats why I was offended.

    Quote Originally Posted by Thothlike View Post
    take your own advise...
    Ah actually thats the advice of deathshadow.. and its there to remind HIM to chill. When he first came to this forum he was very fiery, aggressive and swearing in every post of his.. but then he'd tell others that they needed to chill etc.. hence the signature.

    Incidentally I didn't really see you asking many questions.. more being defensive about why your methods were more suited and why our suggestions were not suitable. I may be wrong.. but i don't really recall seeing you really asking - just Vege and Benanamen making several attempts to convince you.

    Quote Originally Posted by Thothlike View Post
    And be nice about it...
    Read my initial reply to you again. I was nice and I was trying to help. I am generally a nice enough person but when i give advice and folks deliberately decide against it.. well it does become a bit frustrating. You've got to admit you've not been the easiest person to sway - Vege and Benanamen have had to post several times to win you over too. We got there in the end.. thats the main thing!

    Quote Originally Posted by deathshadow View Post
    So seriously, loosen up that tie, let out the belt, and try relating to normal people on the street instead of the gentleman's club crowd.

  8. Users who have thanked tangoforce for this post:

    Thothlike (05-19-2017)

  9. #22
    New Coder
    Join Date
    Oct 2016
    Posts
    28
    Thanks
    6
    Thanked 1 Time in 1 Post
    We got there in the end.. thats the main thing!

    And there is beautiful at the end... looking back and seeing the birth and destruction of the universe happening all at once... (plus the food is absolutely brilliant at the restaurant at the end of the universe)

  10. #23
    New Coder
    Join Date
    Oct 2016
    Posts
    28
    Thanks
    6
    Thanked 1 Time in 1 Post
    Quote Originally Posted by benanamen View Post
    quick, somebody call an ambulance. We have a burn victim!:d
    Code:
    911
    :d

  11. #24
    New Coder
    Join Date
    Oct 2016
    Posts
    28
    Thanks
    6
    Thanked 1 Time in 1 Post
    Quote Originally Posted by frankiehayward View Post
    Leave it to forums and text messages to prove that you don't need to speak a different language to misunderstand someone...



    BTW: I'm new here and this was the first thread I read on this forum, hi guys/girls
    Welcome


 
Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •