Quote:
Originally Posted by Publisher Bucks
So that being said, would it be prudent for me to start utilizing pdo instead of mysqli if there range of databases is larger, will pdo allow me any benefit other than a wider range of database usage overall?
|
Concentrate on one thing at a time.
You are close to having a working solution using mysqli. So, if I were you, I would get what I have working and make sure I understand what is going on and why I used each and every comment and function that I used.
Then If I want to play with pdo, make a copy and change it out to work with pdo.
Then I would probably make another copy and turn the whole thing into an class and do an object oriented cut of it.
Each time it will increase your knowledge.
Earlier I forgot to answer you about echo versus print. They are bascially the same in common usage. There are differences. Print returns a value of 1 while echo does not and echo can take multiple parameters.
As I said in the earlier thread php.net is your friend.
https://www.php.net/manual/en/function.echo.php
https://www.php.net/manual/en/function.print.php
.