RE: [PHP] Delimiter WITHOUT lots of IF's :: SOLVED ::
| From: | Cesar Aracena | Date: | Tue, 19 Aug 2003 19:04:42 +0000 |
| Subject: | RE: [PHP] Delimiter WITHOUT lots of IF's :: SOLVED :: | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-160065@lists.php.net to get a copy of this message | ||
>
> > Importance: High
> > Sensitivity: Confidential
>
> Is this being done by your server or by you?
>
By me, because of my Company's policies and requirements. Sorry if it
bothers anyone :)
> > 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?
>
> Ok. If it prints zero that means it's (a) your SQL query works, (b)
your
> retrieving the value correctly from the $result.
There was an error actually in the query, that was passed while copying
one of Ralph's answers. Just a Typo that I didn't saw earlier.
>
> $row['total_size'] seems to be working as expected. If it wasn't
working
> correctly it'd probably print "Array" or something.
>
> You're next option would be to try print_r();
>
>
> echo "<pre>";
> print_r($row);
> echo "</pre>";
>
> That will show you exactly what's in $row.
>
Thanks to everyone who helped me with this.
Cesar