Jump to content

[SOLVED] .../$id.php Maybe this will work?


Gem

Recommended Posts

Hiya

 

I'm still stuck with getting my links to work ...

 

at the moment they look like this:

 

<a href='test1.php?currentpage=$id'>$title</a>

(It used to be PHP_SELF but I thought it might work if I sent it to another page altogether)

 

My question is ...

 

How do I tell 'test1.php?currentpage=$id' what to display,

 

or

 

would this be better:

 

<a href='$id.php'>$title</a>

 

Although that still leaves me not knowing how to tell THAT page what to display ... am I making sense?

 

Cheers

 

Gem

Link to comment
https://forums.phpfreaks.com/topic/152792-solved-idphp-maybe-this-will-work/
Share on other sites

Sorry

 

Basically:

 

I have a table (id, title, subtitle, article)

 

On test.php I have listed listed title, subtitle by id desc

 

title is linked as shown above

 

I now want to be able to open that link and see title,subtitle,article on a new page, same page ... any page??

 

Make sense now?? x

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.