Jump to content

BlueSkyIS

Members
  • Posts

    4,268
  • Joined

  • Last visited

Posts posted by BlueSkyIS

  1. if you mean the logo image in the upper left hand corner, that image is part of the background CSS and as part of the background of an object is not linkable.

     

    the link code is this, which is essentially 'invisible nothing':

    <h1 class="logo"><a href="/index.php" title=""><span></span></a></h1>

     

    there are some options including:

    1. pull the image out of the background CSS and into the page as an actual image instead of using it as background. (best idea)

    2. place a clear rectangular image over the background and link via the clear image.

  2. i would remove this: if( !$fetchdata = mysql_query($query) )

     

    and replace it with this:

     

    $query = "SELECT * FROM productfeed WHERE id = $id";
    $fetchdata = mysql_query($query) or die("query: $query<br>Failed with error: " . mysql_error()  . '<br>');
    if (!$fetchdata) 
    

     

  3. this line does nothing. what are you trying to do?

     

    $_SESSION['username']; // does nothing.
    

     

    and unless there is some code you aren't showing, $username is empty here:

     

    $query="SELECT DISTINCT u.Use_Name, u.Use_ID, u.Use_Name, us.Sub_ID, s.Sub_Name
    FROM user u, user_x_subject us, subject s
    WHERE u.Use_Name = '$username'
    AND u.Use_ID = us.Use_ID
    AND s.Sub_ID = us.Sub_ID";
    

     

    ... and you should check for query errors by updating the code as so:

     

    $result = mysql_query($query) or die(mysql_error() . " IN $query");
    

     

  4. i don't like messing with all those details of mime types, etc. i suggest that you use an existing email class to make things simpler. i use rmail. if you follow the example scripts included in the download, it is very easy to set HTML, add attachments, etc.

     

    http://www.phpguru.org/downloads/Rmail/Rmail%20for%20PHP/

     

    I understand that your question relates to HTML and not attachments, but rmail does a great job of making HTML emails simple whether you add attachments or not.

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