PHP Classes

what is ConnectionID

Recommend this page to a friend!

      Database ORM Builder  >  All threads  >  what is ConnectionID  >  (Un) Subscribe thread alerts  
Subject:what is ConnectionID
Summary:Unable to making successful connection
Messages:2
Author:Bipul Alam
Date:2015-12-06 18:16:47
 

 


  1. what is ConnectionID   Reply   Report abuse  
Picture of Bipul Alam Bipul Alam - 2015-12-06 18:16:47
Hi,
$userName = 'root';
$password = '199abc';
$host = 'localhost';
$port = '3306';
$connectionID = ''; <-- what is this

Can you please tell me what is connectionID. I have tried giving my Database Name.

I am seeing this error message - Warning: mysqli::mysqli(): (HY000/1045): ...blah..blah at line 60

Please suggest.

  2. Re: what is ConnectionID   Reply   Report abuse  
Picture of Anthony Amolochitis Anthony Amolochitis - 2015-12-07 02:59:31 - In reply to message 1 from Bipul Alam

This is how you use the class to build your ORM.

//
// Create the conntection property for the connection wrapper I use
//
$dbConnectProperty = new dbConnectProperty() ;
$dbConnectProperty->host = 'localhost' ;
$dbConnectProperty->password = 'password' ;
$dbConnectProperty->userName = 'username' ;

//
// Create the object and tell it what database you will use in the
// database connection to mysql.
// It uses the Mysqli extension to connect.
//
$DataObjectBuild = new DataObjectBuild('databasename' , $dbConnectProperty) ;
$DataObjectBuild->GetTableList() ;
$DataObjectBuild->GenerateDataClasses() ;

 
For more information send a message to info at phpclasses dot org.