|
|
 Wade Arnold | 2006-07-07 19:33:31 |
I do not see what type of DB parameter I should be sending into your class?
$zip = new ZipCodesRange($appconf['dbconnection'],'98303',50);
What is this? PEAR DB, MBD2, mysql_connect ??
$appconf['dbconnection']
|
| |
2. Re: DB Connection |
|
Reply |
|
|
 Todd Santoro | 2007-01-04 18:01:01 - In reply to message 1 from Wade Arnold |
| Did you ever get this class to work? I am getting the same errors. |
| |
3. Re: DB Connection |
|
Reply |
|
|
 jeff g | 2007-02-27 13:53:59 - In reply to message 2 from Todd Santoro |
If anyone has gotten the DB connection part to work, I would love to hear from you.
Thanks very much! |
| |
4. Re: DB Connection |
|
Reply |
|
|
 Vernon Kesner | 2008-06-16 17:38:35 - In reply to message 3 from jeff g |
I know this is an old msg so hope this reply isn't a problem...
To get it to work, Set your mysql_connect() to a variable and then replace $appconf['dbconnection'] with your variable.
For instance...
$config['db_connection'] = @mysql_connect('localhost', 'user', 'pass');
Then...
$zip = new ZipCodesRange($config['db_connection'],'98303',50); |
|