RE: [PHP] Delimiter WITHOUT lots of IF's

From: Date: Tue, 19 Aug 2003 18:38:10 +0000
Subject: RE: [PHP] Delimiter WITHOUT lots of IF's
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-160054@lists.php.net to get a copy of this message
> > So it's not returning any results? > > What happens when you do the following... > > >> } else { > >> $n = $row['total_size']; > echo ":$n:"; > > Put that echo statement in your code and see what happens. > > If you've already done this and it prints :: (as opposed to :0: which > would indicate a value of zero) then you're sql query is not correct or > there are just no rows that match what you're looking for. > [Cesar Aracena] It does print 0 so I guess something must be wrong somewhere else. My guess is that $row['total_size'] is not fetching anything. Shouldn't the function contain a mysql_fetch_array somewhere? Thanks Cesar

« previous php.general (#160054) next »