Re: displaying database output in a table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2010-05-27 at 17:59 -0400, Adam Richardson wrote:

> On Thu, May 27, 2010 at 5:47 PM, David Mehler <dave.mehler@xxxxxxxxx> wrote:
> 
> > Hello Everyone,
> > Thanks for all your suggestions. Unfortunately, I've replaced
> > require_once with include_once and require with include in all the
> > documents, I'm still not having any luck.
> > Thanks.
> > Dave.
> >
> >
> > On 5/27/10, Bob McConnell <rvm@xxxxxxxxx> wrote:
> > > From: Philip Thompson
> > >
> > >> On May 25, 2010, at 8:27 PM, David Mehler wrote:
> > >>
> > >>> Hello,
> > >>> I'm trying to display mysql database output in a formatted table. My
> > >>> problem is i'm getting a blank screen with no errors. I've got
> > >>> debugging on, and have run the cli php on this file which produces no
> > >>> errors either, but neither does it give me any output.
> > >>> My eventual goal is to select the two nearest future events to the
> > >>> current date. Having done that I want to display the name, location,
> > >>> start date, start time, and a summary. Right now though I just want
> > > to
> > >>> put all information in the database in to a table.
> > >>>
> > >>> Here's the code. Pointers welcome.
> > >>> Thanks.
> > >>> Dave.
> > >>>
> > >>> <?php
> > >>> require_once($_SERVER['DOCUMENT_ROOT'] . "/dbconnect.php");
> > >>
> > >> I ran into a similar issue yesterday. Tracked it down and figured out
> > >> the "required" file did not exist. It didn't show up in my dev
> > >> environment b/c I had the file. When we pushed it to QA, the file had
> > >> not been uploaded. The require_once() stops execution if the file
> > > isn't
> > >> found. Try changing it to include_once() and see if you can _any_
> > > output.
> > >
> > > We struggled with this as well. require terminates the process without
> > > any indication of why it stopped. No error, no exception, not even a
> > > whimper. Recording a basic "file not found" message in the error log
> > > would be a major improvement.
> > >
> > > Bob McConnell
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> Can you show us what the current code looks like?
> 
> Adam
> 


What do you get if you just echo out $_SERVER['DOCUMENT_ROOT']?

Thanks,
Ash
http://www.ashleysheridan.co.uk



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux