Problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Problem

    Hi, I want to modify the header of a script, when i am downloading a file, in header( to be seo friendly, in description and key words to display the name of th file . but i cannot figure what is wrong
    pls corect me where i am wrong
    PHP Code:
    $file intval(trim($_GET['file']));
    $file1 mysql_query("select * from `download` where type = 'file' and id = '" $file "';");
        echo 
    "\n" '<meta name="description" content="free download 2011 ' $file1['name'] . '" />'
    Ps. is john cms 4.0

    #2
    <meta refresh...

    Comment


      #3
      You need to fetch the data in the query.

      PHP Code:
      $file1 mysql_fetch_assoc($file1); 
      Echo 
      $file1['name']; 
      Btw. Filter your input better. You could run is_numeric() on it. Always make sure the value is in the format you want.
      Perfection comes at a cost



      I accept liberty!

      Comment

      Working...
      X