Problem with link

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nick

    #1

    Problem with link

    Hi,

    I'm creating a php web page and have a problem with linking.
    I've created a table including the following string:

    "<td'>$dayw </td>" .

    What I'd like to do is to link $dayw to $title.
    I made the following code, which is wrong:

    "<td'><a href="$title">$ dayw</a></td>" .

    Do you know which is the exact code for this purpose please?
    I'm new in Php and still have some problem with basic programming.
    Many thanks for the support.

    Best,
    Nick
  • whiskey

    #2
    Re: Problem with link

    What do you mean by linking a $var to $anothervar or, in your case,
    $dayw to $title ?

    On Nov 2, 10:28 am, Nick <"no address"wrote:
    Hi,
    >
    I'm creating a php web page and have a problem with linking.
    I've created a table including the following string:
    >
    "<td'>$dayw </td>" .
    >
    What I'd like to do is to link $dayw to $title.
    I made the following code, which is wrong:
    >
    "<td'><a href="$title">$ dayw</a></td>" .
    >
    Do you know which is the exact code for this purpose please?
    I'm new in Php and still have some problem with basic programming.
    Many thanks for the support.
    >
    Best,
    Nick

    Comment

    • whiskey

      #3
      Re: Problem with link

      "<td'><a href="$title">$ dayw</a></td>" .
      You mean: "<td><a href=\"{$title} \">{$dayw}</a></td>"

      Comment

      • Nick

        #4
        Re: Problem with link

        Yes. Thank you very much.
        Nick

        whiskey ha scritto:
        "<td'><a href="$title">$ dayw</a></td>" .
        You mean: "<td><a href=\"{$title} \">{$dayw}</a></td>"
        >

        Comment

        Working...