Re: Need help with Database and variables
| From: | elias | Date: | Tue, 08 May 2001 17:58:04 +0000 |
| Subject: | Re: Need help with Database and variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-51867@lists.php.net to get a copy of this message | ||
Be more specific please,
as you typed "SELECT count(*) FROM ... as ..."
this should return one row and only one!
that means you need to fetch that row and use it as a variable and not
within a row...
can you plz clarify your question?
-elias
http://www.eassoft.cjb.net
""Ryan W. Zajicek"" <php@elghund.com> wrote in message
news:IDENKHJMNHHHCBGHKPCJOEENCEAA.php@elghund.com...
> Hello,
>
> I was wondering if I do a database query like "SELECT count(*) FROM
> table_name AS song_count" if there is a way I can assign song_count to a
> variable that is accessable anywhere on the page and not just in a "WHILE"
> statement?
>
> Thanks is advance
>
> Ryan
> mailto:ryan@ramulus.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>