how to fetch data from database and then display in title bar?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hazelnut2705
    New Member
    • Dec 2006
    • 3

    #1

    how to fetch data from database and then display in title bar?

    Hi there..
    how to fetch data from database and then display in title bar?

    <html <?php echo HTML_PARAMS; ?>>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

    <title><?php echo $HTTP_GET_VARS['products_name']; ?></title>

    </head>
    </html>
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    Originally posted by hazelnut2705
    Hi there..
    how to fetch data from database and then display in title bar?

    <html <?php echo HTML_PARAMS; ?>>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

    <title><?php echo $HTTP_GET_VARS['products_name']; ?></title>

    </head>
    </html>
    When HTML_PARMS and CHARSET are defined constants, that's valid.
    When this script is called with GET and the title is passed: also valid. But don't use HTTP_GET_VARS, because with PHP V6 you'll be stuck! HTTP_GET_VARS is deprecated, replace it with $_GET['xxxx'] .

    If, lastly, this script has an extension of .PHP, it might work.
    I still cannot see where the database part (from your title) comes in.

    Ronald :cool:

    Comment

    • hazelnut2705
      New Member
      • Dec 2006
      • 3

      #3
      thanks a lot

      Comment

      Working...