..
...
If there is more than one version of this e-book available, you can choose which one to download by clicking among the links below:
About the Author
Nancy R. Miller
Nancy R. Miller was born in the Pacific Northwest. She has lived in Arizona, New Mexico, and Idaho. She was a newspaper reporter for a number of years and worked in the corporate world before discovering her love of writing. She has won awards for her creative writing. In her spare time she enjoys reading and running. She has a young daughter who enjoys riding horses and a Golden Retriever, Chum.
Books by Nancy R. Miller
Comments
Powered by Facebook CommentsQ:
PHP: Calling Method of object from non-object-oriented code
I have the following class and would like to use the count method in my non-object oriented code (as I did in Java before).
class db_interface {
public $db_type;
public $host;
public $user;
public $pass;
public $database;
public function __construct(){
$this->db_type ='mysql';
$this->host = 'localhost';
$this->user = 'root';
$this->pass = '';
$this->database = 'gym_modeller';
$this->set_mysql();
}
private function set_mysql() {
$db_handle = mysql_connect($this->host, $this->user, $this->pass) or die ('Could not connect to server');
mysql_select_db($this->database, $db_handle);
public function set_pdo() {
$this->db = new PDO('mysql:host='.$this->host.';dbname='.$this->database, $this->user, $this->pass);
Related links:
Comments