Re: Creating Dynamic URLs



I forgot to mention one thing: how can I use this setup to call
information from a database. For example, I've seen this done where the
search query from a search on a site is entered into the URL and is
then searched for in the database. HOw, then, is this done if all of
the 'redirects' (for lack of a better word) have to be predefined?

On Oct 7, 5:10 pm, "jflash" <ki4...@xxxxxxxxx> wrote:
Ron: I assume that I simply add that code to my 'initial' page
(index.php in the example I started with). However, I am curious how I
define a default page to load (i.e. in my index.php example, how would
I specify what page to include/what content to display in the event
that no parameters are entered)? Also, do I have to manually add each
page for the parameter to include in the file, or is there some way
that I can use a database for the list of parameters and their
corresponding pages?

Jock:

1. I had originally thought I could use dynamic URLs to pull content
from a database and display it on a page based on the parameters
defined in the URL. In any case, I hope that using the dynamic URLs
will make it easier for my users, particularly once I get search-engine
friendly URLs set up.

2. Actually, I already have a version of my site up, I mainly am doing
this because I am dooing a major overhaul for various other reasons,
and since I have been wanting to implement this for a while now, it
seems like a good time to do it.

3.1. I don't get what you're saying. I wasn't planning on using
index.php as the base file name, I just used it for an example.
Actually, now that you say it, I'm thinking I might use the 'index.php'
part of the URL to serve as a category, then define the specific page
later. I don't know, I'll decide that later.
3.2. I'm just using PHP because I know for a fact my server supports
it, and I see no reason to try anythign else and risk a lack of support
on the server end of things.

Thanks for the help!

On Oct 7, 11:11 am, usenet+2...@xxxxxxxxxxxxxxxx wrote:

jflash:

I am wanting to set my site up using dynamic urlsWhy?

At least you are thinking about URL design before publishing your
pages: that puts you ahead of the masses. Retrospective URL design
is, in a word, iffy.

(I'm assuming that's what they're called, an example of what
I have in mind is index.php?page=[pagename]).'Dynamic URL' is a misleading though common term for URLs with query
parts. Misleading because there is nothing dynamic about URLs. That
example, we can say, is a relative reference consisting of a path and a
query part (square brackets aren't allowed in query parts). Nothing
more. What the server does with that URL is up to you, but the URL,
the string of characters, is not dynamic.

Couple of points on your example:

1. "Indexes" rarely are indexes. Are you sure there isn't a better
name? No name, even?

2. URL suffixes, unless you see the URL as pointing to a particular
representation of the resource, serve no purpose. It is generally of
no consequence to users whether you use PHP or some other language to
create your pages.

However, I can not figure out how to do this.I think another poster has suggested one way.

I will eventually want to use SEF urls,I can guess what you mean by that, but again I think the term is
misleading.

--
Jock

.



Relevant Pages

  • Re: Creating Dynamic URLs
    ... I hope that using the dynamic URLs ... I'm just using PHP because I know for a fact my server supports ... Misleading because there is nothing dynamic about URLs. ... query part. ...
    (comp.lang.php)
  • Re: DBMS and lisp, etc.
    ... Naively implemented with SQL, again for 10 ... (1 query for the initial orders, 1 query for each order for its ... soon as you upgrade to the SQL database. ... (eq (order-customer orderA) ...
    (comp.lang.lisp)
  • Re: OT: SQL
    ... query processing. ... FROM Employees e, Employees m, Management mgt ... Manager and Employee Salaries. ... The scheme used does not model database files in general, ...
    (sci.logic)
  • Re: access 2003
    ... I removed the parameters from the form query source. ... boxes from the form header, events, code, etc and ran the form query source ... forms queries and the SQL because syntax of the SQL will change randomly. ... the Access 97 database, I wouldn't have thought any expressions would be ...
    (microsoft.public.access.conversion)
  • RE: Import external data - web query
    ... Your reply for my query is very extensive, this is for importing a file from ... The data source I want isn't listed in the Select Data Source dialog box. ... information used to connect to a database. ... Check your driver First, make sure you have the right ODBC driver (Open ...
    (microsoft.public.excel.misc)