Web Hosting Talk







View Full Version : dbclass.php


xFuzion
09-08-2006, 12:30 AM
Not sure if this is exactly the right place to post this.

I recently lost my dbclass.php script I've been using for YEARS! I have absolutely now way of recovering and forget where I even got it from.

I was browsing the internet and saw some but most were heavily complicated to what I was using ( had the normal commands where as most I'm seing have these weird functions such as fetchNextObject? ) perhaps I've been out of php use so long that something new has arised that I need to learn.

Either way, I was wondering perhaps if anyone knows where I can get my hands on a good dbclass.php script, mostly I need the fetch_array() function which I am used to using.


Thanks,
-Robert

Jatinder
09-08-2006, 12:52 AM
Why not just use the native mysql functions?

PHP offers a mysql_fetch_array() function natively.

If you still want a wrapper class for mysql functions, visit http://php-classes.org/mysql/

They are the best PHP class resource on the net.

xFuzion
09-08-2006, 12:56 AM
Why not just use the native mysql functions?

PHP offers a mysql_fetch_array() function natively.

If you still want a wrapper class for mysql functions, visit http://php-classes.org/mysql/

They are the best PHP class resource on the net.

I was possibly going to do that, looking at another class script I might even just write my own.

The class just ran and handled it way faster and cleaner in my experience?

Thanks too by the way

Jatinder
09-08-2006, 01:34 AM
I doubt if any class is going to be faster than the native functions. Of course, ease of development make the classes worthwhile.

stuffradio
09-08-2006, 02:24 AM
I too don't see how another script would be faster and better rather than the original function

maiahost
09-08-2006, 02:38 AM
well if you need the old file -> http://www.phpclasses.org/browse/file/6335.html I think that's the one you're referring to.