For years I’ve used mySQL. Big Mistake. PDO is definitely the way to go and I have learnt the hard way.
But I don’t quite understand it yet and am not finding the tutorials particularly helpful.
Security and speed are my too main issues with mySQL. What would a standard PDO formula look like if I wanted to say fetch information from
$variable1 - SQL TABLE
$variable2 - FIELD TO MATCH
$variable3 - MATCH WITH THIS
and then assuming that there are a given number of fields in each found row, once it is found presumably it would look something like $row['field_name'];
If I can see how this is done based on this example I think I can probably manage the rest.
Also if you know a good link for something like what w3schools does for mySQL queries but for PDO then I would appreciate it too.
Fully documented, it looks like this: