PHP Help!
- Started
- Last post
- 17 Responses
- bigredmailbox
Rite on websites you can havve like
index.php?id=7748374662383how is that done???????
Please help
Thanks In Advance
- Nairn0
BRM - Firstly, the question you never really answered last time - DO YOU KNOW PHP?
the question you ask is slightly nonsensical - u can 'Do' what you ask by making a link to index.php ?id=12324 - it won't 'Do' anything,. but u can make it.
If you even vaguely undersatand php you should vaguely understand what the ?id=1234 suffic means, does and how it can be achieved.
- bigredmailbox0
The only PHP ive done is like Mail Scripts and A Simple Member system.
So how whould i make it??????
- ********0
its the translating that that you probably mean... so in your PHP you might do is something like
$gotID=$_GET["id"];
- Nairn0
ok. this is where your question becomes nonsensical -
'Make what', exactly? You're not asking for anything!
You should probably temper your ambitions slightly and start with some basic php guides - i'm on my laptop at the moment, so don't have any useful links bookmarked, but if you search the PVN and Google for 'Simple/Basic PHP tutorials' and dig around php.net you should find somegood guides.
Good luck.
- bigredmailbox0
i want like
news.php?id=001
news.php?id=002
news.php?id=003
news.php?id=004
news.php?id=005Each one being a different news item. So how would this be achived?
- jpea0
each id is most likely a reference to an item in a database. that id is grabbed when you go to the url, and then it pulls content and formats it into the page by it's id. if it matches, that's the content it'll grab from the database. what you're asking is seriously like 1% of the thing you want done.
- digilee0
create a bunch of html pages and name them
news.php?id=001
news.php?id=002
news.php?id=003
etcthen just paste the content into them.
: )
- bigredmailbox0
i do not want it database driven
can anyone make an example and post it up?
- ********0
- Nairn0
can anyone make an example and post it up?
bigredmailbox
(Jan 4 07, 06:00)Ah ha! the clincher!
I'm guessing - no, probably not.
- bigredmailbox0
Dude i wasent guna use it. I was just gunna see how it worked.
- ********0
i'm in love with url bar semantics
- jpea0
http://pastebin.coconut.se/?id=4…
here's a quickie.
- bigredmailbox0
Thanks! That Pwerfect. Know i know That as easy a S**T Steaming.
- st33d0
Read this:
http://www.tizag.com/phpT/Then when you've learned that, go learn Perl and become a man.
- digilee0
i do not want it database driven
bigredmailbox
(Jan 4 07, 06:00)Then my cheeky response wasn't too far off the mark!!
- ********0
our homepage is not from a database