[ciapug] OOPs... I hit a problem

Bryan Baker ciapug@cialug.org
Thu, 7 Apr 2005 12:01:44 -0500


Assuming this is in a test environment ATM, have you tried putting in 
something like:

$db->debug = true;

Where $db is your connection object. One of the features of ADOdb is 
that you can turn on some debugging w/ that command that trace (and 
print) all of your transactions (and provides errors that might 
otherwise seem silent). I've just been re-purposing a little project I 
did a couple years ago using ADOdb, and that little command (I just 
uncomment it when something doesn't work) helped me a lot.

If you've already used that, sorry for the lame advise, but I didn't 
see that you've used it yet in your post. Hope it helps.

On Apr 7, 2005, at 11:39 AM, Chris Van Cleve wrote:

> Well gang, I've come to a point where I simply had to up the ante on 
> my site
> building for work. I wrote a class to display pages in a standard 
> layout and
> format, complete with accepting variables to determine what elements 
> should
> exist on a page.
>
> The nice thing is, it now only reqires 3 lines to render a page on our 
> Intranet,
> and I maintain control of layout and design freeing other developers to
> concentrate only on the core content of a page.
>
> But here's the downside that I've been trying to resolve for two days 
> now. I'm
> at my frustration point and havent been able to find a suitable 
> explanation or
> solution to my problem anywhere online, so I'm coming to the experts 
> here. ;)
>
> I use John Lim's excellent ADOdb library for database abstraction. (Now
> religious wars about using PEAR::DB etc. The choice is made and the 
> debate is
> over) I have a file called core.php which contains the OOP for page 
> rendering
> as well as setting up some constants, including the ADOdb library, and
> instantiating 3 DB connections. The problem? no queries ever return any
> results. This is odd since the exact same code works fine 
> procedurally. Yes, I
> globalled the ADOdb connection objects.
>
> I'm at a loss. Does anyone have any advice, suggestions, etc? I'm 
> deeply
> frustrated at this point. Thanks!
>
> Chris VC
>
> _______________________________________________
> ciapug mailing list
> ciapug@cialug.org
> http://cialug.org/mailman/listinfo/ciapug
>
>
--
Bryan Baker
Technology Advocate
Iowa Legal Aid
Suite 230
1111 9th Street
Des Moines, Ia 50314-2527

(515) 243-2151 (x1635)

http://www.iowalegalaid.org
bbaker@iowalaw.org