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"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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:[EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]