PHP script to sort data/create pages according to fields?

This is a discussion on PHP script to sort data/create pages according to fields? within the PHP Language forums, part of the PHP Programming Forums category; eg. Someone fills out 3 fields. (There will be more but this is just to give you an idea) 1. ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-18-2004
jaytee1232003@yahoo.com
 
Posts: n/a
Default PHP script to sort data/create pages according to fields?

eg.

Someone fills out 3 fields. (There will be more but this is just to
give you an idea)

1. Country
2. State
3. City

I want this script to generate a web page and list the people by
information submitted.

eg. Everyone that put in USA will be listed on a page.

or

Choose California and everyone that typed in California will be listed
on a page.

I can also create links with criteria at the end. eg.
mysite/search.php?=montana

This script will also accept data from people. So people will visit,
type of the form and if the information is valid (not spam) then
they'll be in a database and able to be sorted.

Does that make sense?

Reply With Quote
  #2 (permalink)  
Old 12-19-2004
Alan Little
 
Posts: n/a
Default Re: PHP script to sort data/create pages according to fields?

Carved in mystic runes upon the very living rock, the last words of of
comp.lang.php make plain:

> Choose California and everyone that typed in California will be listed
> on a page.
>
> Does that make sense?


Yes. Are you at all familiar with MySQL?

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Reply With Quote
  #3 (permalink)  
Old 12-19-2004
tayjee
 
Posts: n/a
Default Re: PHP script to sort data/create pages according to fields?

I'm not familar with MySQL. I know it's on my server. I'm still a
newbie at this.

Reply With Quote
  #4 (permalink)  
Old 12-19-2004
Gary L. Burnore
 
Posts: n/a
Default Re: PHP script to sort data/create pages according to fields?

On 18 Dec 2004 18:32:12 -0800, "tayjee" <jaytee1232003@yahoo.com>
wrote:

>I'm not familar with MySQL. I know it's on my server. I'm still a
>newbie at this.


You're obviously a newbie at USENet as well. Next time, try leaving
in just enough of what you're replying to so people know what you're
talking about. Leave in the attribute (who you're talking to) as
well.
Reply With Quote
  #5 (permalink)  
Old 12-19-2004
dawnunder@gmail.com
 
Posts: n/a
Default Re: PHP script to sort data/create pages according to fields?

Gary L. Burnore
"You're obviously a newbie at USENet as well."
---------
No reason to be rude.

One question was asked by Allan Little. "Are you at all familiar with
MySQL?"

It's not like there were ten responses or posts to choose from . If
people want to know who I'm responding to in this message then perhaps
they can read the ONE message and the ONE question that's not mine.

Reply With Quote
  #6 (permalink)  
Old 12-19-2004
tayjee
 
Posts: n/a
Default Re: PHP script to sort data/create pages according to fields?

Gary L. Burnore
"You're obviously a newbie at USENet as well."
---------
There's little reason to be rude or condescending.

One question was asked by Allan Little. "Are you at all familiar with
MySQL?" I replied: "I'm not familiar with MySQL."

It's not like there were ten responses or posts to choose from. If
you want to know who I'm responding to in this message then perhaps
they can read the ONE message with ONE question that's not mine and is
between my original post and my response.

Reply With Quote
  #7 (permalink)  
Old 12-19-2004
Tim Van Wassenhove
 
Posts: n/a
Default Re: PHP script to sort data/create pages according to fields?

In article <1103425366.888924.303010@z14g2000cwz.googlegroups .com>, dawnunder@gmail.com wrote:

> It's not like there were ten responses or posts to choose from . If
> people want to know who I'm responding to in this message then perhaps
> they can read the ONE message and the ONE question that's not mine.


Do you really think we (this group) want to spend time on that?
Anyway, the answer to everything you are asking yourself right now can
be found at: http://www.catb.org/%7Eesr/faqs/smart-questions.html


--
Met vriendelijke groeten,
Tim Van Wassenhove <http://www.timvw.info>
Reply With Quote
  #8 (permalink)  
Old 12-19-2004
Alan Little
 
Posts: n/a
Default Re: PHP script to sort data/create pages according to fields?

Carved in mystic runes upon the very living rock, the last words of tayjee
of comp.lang.php make plain:

> I'm not familar with MySQL. I know it's on my server. I'm still a
> newbie at this.


That's fine. So, there's a place to start looking. Unless you're looking
for someone to write the program for you, you should start with some
tutorials.

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Reply With Quote
  #9 (permalink)  
Old 12-19-2004
Geoff Berrow
 
Posts: n/a
Default Re: PHP script to sort data/create pages according to fields?

I noticed that Message-ID:
<1103425828.441573.7230@z14g2000cwz.googlegroups.c om> from tayjee
contained the following:

>Gary L. Burnore
>"You're obviously a newbie at USENet as well."
>---------
>There's little reason to be rude or condescending.
>
>One question was asked by Allan Little. "Are you at all familiar with
>MySQL?" I replied: "I'm not familiar with MySQL."
>
>It's not like there were ten responses or posts to choose from. If
>you want to know who I'm responding to in this message then perhaps
>they can read the ONE message with ONE question that's not mine and is
>between my original post and my response.


'Between' makes the assumption that
1, one is using a threading newsreader
2, messages arrive in order

Garry said
"You're obviously a newbie at USENet as well." which is simply an
observation of fact.

It's blunt, but it's not rude.

In answer to your question, you must investigate ways of storing your
data (ie in a database such as MySql) and then retrieve it based on the
value of the field in question. This involves learning PHP to connect
to the database, and some SQL to query it. Unfortunately, though many
people here will be able to write such a script, this is beyond the
scope of this group and you need to look for a PHP/MySQL tutorial.

Best advice is to have a go and then come back with a specific problem.

Good luck.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Reply With Quote
  #10 (permalink)  
Old 12-20-2004
iMedia
 
Posts: n/a
Default Re: PHP script to sort data/create pages according to fields?

You have much to learn. Start small and break each step down into
little pieces.

Your best bet is to find all your resources and get familiar with them,
such as:
PHP: http://us2.php.net/manual/en/
MySQL: http://dev.mysql.com/doc/mysql/en/index.html

You will also find great help and advice at
http://SitePoint.com/forums/. They helped me greatly when I first
began. (No, I am not affiliated with them, just a fan).

Good Luck.

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 09:41 AM.


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