Sorry because I’m pretty bad in PHP
Thus I find myself very very stupidly blocked because I am unable to understand or I have to put my info to my connections in my database file “class_DbConnect.php”
in case the file looks like this:
https://github.com/manifestinteractive/easyapns/blob/master/src/php/classes/class_DbConnect.php …
So I tried to resolve it myself by watching the video of “demo” but it is obsolette. The php file taken from the demo being different, at least different enough to trouble me!
I am sure it is simple : I have 4 informations (host, username, pass and DB name) but i don’t know where to set them in the file … i know it’s in this file but don’t know where.
For the rest, we will see later. I have created the necessary DB, I must also understand how the certificates, how to recover, etc. … but for now, I should like already done with the php part …
I will post the different findings and actions here … I’m pretty sure it will be usefull for others.
you are not to put the information in the file but add them when you declare the class
Explanation
The Class Contains
what you need in your PHP code is something like this
It is a
bad practicetrying to hard-code values directly in a class what if you need to connect to multiplehostordatabaseJoe Burnett
As a beginner you don’t need such classes when MySQL as fantastic `mysqli’ extension which is also object oriented and very fast .
The usage is similar to what you have not but does not require any additional including any class
Example
Fore more information and examples see http://www.php.net/manual/en/mysqli.construct.php