Re: displaying database output in a table

From: Date: Wed, 26 May 2010 13:24:00 +0000
Subject: Re: displaying database output in a table
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-305546@lists.php.net to get a copy of this message
At 9:27 PM -0400 5/25/10, David Mehler wrote:
I'm trying to display mysql database output in a formatted table. My problem is i'm getting a blank screen with no errors. -snip- <?php $query = "SELECT * FROM events"; if (!($result = @ mysql_query ($query, $db))) displayEvents($result); mysql_close($db); } ?>
Not that this is the problem, but "@" suppresses error reporting. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#305546) next »