|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Small problem
if i enter a url like
URL how can i see the artikel with id 6 on the page?? and just that artikel with id 6?? |
|
#2
|
|||
|
|||
|
this means that your sending a get variable to the server.
a simple example would be echo $_GET['artikelid']; so in your case it would print out 6, you can then use this variable to query a database or do anything you like with it |
|
#3
|
|||
|
|||
|
Cheers, m8, try this:
PHP Code:
Also, reading the manual helps too! ![]() Good luck, Joe of 4Life ![]() [edit]I assume that the article is in a MySQL database. Is it?[/edit]
__________________
Check out 4Life today! Last edited by Joe4JC : September 21st, 2002 at 11:28 AM. |
|
#4
|
|||
|
|||
|
Wow Ben, you posted before I could! Well, actually it took me 20 mins to type that because I was trying to do a million other things at once!
lol ![]() Cheers, Joe of 4Life ![]() |
|
#5
|
|||
|
|||
|
Joe4JC's code is basically what you are going to need to do. You will need to make changes in order for it to fit your website's style, database structure, etc..
For more indepth explanation on retrieving data from a specifc row in a table can be found in Ben's PHP & MySQL basics tutorial.
__________________
![]() ![]() "Only Linux users see the end of crashes." - Pl4t0 |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Small problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|