On Fri, Jul 25, 2008 at 1:55 PM, Jay Blanchard <[EMAIL PROTECTED]> wrote:
[snip!]
>
> $endBal = mysql_fetch_array($dbEnd);
> echo mysql_num_rows($dbEnd);
> print_r($endBal);
>
> Nothing gets returned from those last statements. Am I missing something
> completely?
Right here....
<?php
// Code before....
if(!$dbEnd = (mysql_query($getEnd, $dbc))){
echo mysql_error() . "\n";
exit();
}
// .... code after....
?>
You're merging assignment. Maybe you meant this:
<?php
if(($dbEnd = mysql_query($getEnd, $dbc)) === FALSE) {
echo mysql_error() . "\n";
exit();
}
?>
Or you could do it like I do:
<?php
$dbEnd = mysql_query($getEnd,$dbc) or die(mysql_error());
?>
--
</Daniel P. Brown>
Better prices on dedicated servers:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php