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
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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.