Jump to content

Jacques3

New Members
  • Posts

    1
  • Joined

  • Last visited

Jacques3's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Then you aren't reading it. Sounds like you're mix matching random bits of codes you find on the internet and hope it works together. If you don't understand MySQLi, you won't understand PDO. As of right now, you don't even understand MySQLi as far as I see it. You're adding > 0 to num_rows. num_rows already returns true or false if the record does not exist or if it exists. Adding > 0 to num_rows is redundant because it already returns true or false. Where does the variable $handler come from? If you use $handler for 1 query, then you should be using $handler for your whole query. mac_gyver has provided an excellent example of how it should be done right. Understanding it and copy & paste trial error are 2 different things. It's harsh, but you have to deal with it because you've asked basically the same questions in all of your topics. I'd be pretty shocked if you have this up on a live server. Your users would be able to find all of the horrible codes and break into your website like nothing.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.