grouping output to screen

This is a discussion on grouping output to screen within the PHP Language forums, part of the PHP Programming Forums category; I'm able to run the following while in php admin, but I want to be able to run this ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-12-2003
entoone
 
Posts: n/a
Default grouping output to screen

I'm able to run the following while in php admin, but I want to be able to
run this from a php page and seethe results on the screen. Any suggestions?

SELECT state, count( state ) 'count'
FROM contacts3
GROUP BY state
ORDER BY state LIMIT 0 , 30


Reply With Quote
  #2 (permalink)  
Old 08-12-2003
entoone
 
Posts: n/a
Default Re: grouping output to screen

I read about the template tamer at that site.What's throwing me on this is
how to assign count to a variable.

"rush" <pipa@rush.avalon.hr> wrote in message
news:bhae0b$s3l$1@ls219.htnet.hr...
> "entoone" <entoone@pacbell.net> wrote in message
> news:NSVZa.627$S65.387@newssvr25.news.prodigy.com. ..
> > I'm able to run the following while in php admin, but I want to be able

to
> > run this from a php page and seethe results on the screen. Any

> suggestions?
> >
> > SELECT state, count( state ) 'count'
> > FROM contacts3
> > GROUP BY state
> > ORDER BY state LIMIT 0 , 30

>
> you can take a look at these 2 examples:
>
> http://www.templatetamer.org/index.p...leMySqlRowList
> http://www.templatetamer.org/index.php?MySqlRowList
>
> rush
> --
> http://www.templatetamer.com/
>
>
>



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:40 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0