SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Mar 2007
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    title tag and php

    I have a db of plants, on each page will be data returned about the plants. How do I get the <title>pantname here</title> to be the one which the record below is about.

    Code:
    <title><?'.$rows[$BotanicalName].'?> Information </title>
    thats what i have so far but get 'information' returned in the title tag only.

  2. #2
    SitePoint Wizard
    Join Date
    Oct 2005
    Location
    London
    Posts
    1,678
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    <title><?php echo $rows['BotanicalName']; ?> Information </title>
    I dont know why you've got a $ before BotanicalName so if that doesnt work could you post more relevant code


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •