By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,776 Members | 1,351 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,776 IT Pros & Developers. It's quick & easy.

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

P: n/a
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?

Jul 17 '05 #1
Share this Question
Share on Google+
9 Replies


P: n/a
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/
Jul 17 '05 #2

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

Jul 17 '05 #3

P: n/a
On 18 Dec 2004 18:32:12 -0800, "tayjee" <ja***********@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.
Jul 17 '05 #4

P: n/a
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.

Jul 17 '05 #5

P: n/a
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.

Jul 17 '05 #6

P: n/a
In article <11**********************@z14g2000cwz.googlegroups .com>, da*******@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>
Jul 17 '05 #7

P: n/a
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/
Jul 17 '05 #8

P: n/a
I noticed that Message-ID:
<11********************@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/
Jul 17 '05 #9

P: n/a
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.

Jul 17 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.