Forums Sign Up Reply Search Statistics
CodeFaster Code Generator GraFX Software Solutions - Forum / CodeFaster Code Generator /

Best way to use these PHP classes

 
Author bdc
Forums Member
#1 Posted: 19 Apr 2006 14:41:36
Reply 
Hi,

I was wondering what would be the best way to use these PHP classes with MySQL.

The MySQL-functions are defined inside the class, but the MySQL-connectivity isn't. Where do you connect to the database and how to direct that connection to the class?

Thanks,

Bart
Author software
Admin
#2 Posted: 21 Apr 2006 10:47:12
Reply 
We use a connection file, usually in include/connection.php

Then we include in our main file
include_once(INCLUDE_PATH."connection.php");
Also class files are included here and you can call it anytime.

You can download any of our software and investigate there.
 
Your Reply

» Username  » Password 
Only registered users are allowed to post here. Please enter your login/password details upon posting a message, or sign up first.