Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3851192
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:07:29+00:00 2026-05-19T17:07:29+00:00

Right now, I have everything fine. It prints according to my CSS (text-align: center;).

  • 0

Right now, I have everything fine. It prints according to my CSS (text-align: center;).
the only problem I have is with the image. This is the HTML code:

<table id="cert">  
    <td>  
        <tr><h1>Singapore Aviation Academy</h1></tr>  
        <tr><img src = "img/logo1.jpg" /></tr>  
        <tr><h2>Certificate of Completion </h2></tr>  
        <tr>is hereby granted to</tr>  
        <tr><?php echo "<b>".$row['fname']."&nbsp;&nbsp;".$row['lname']."</b>"; ?> </tr>  
        <tr>to certify that he/she has completed to satisfaction for</tr>  
        <tr><?php echo "<b>".$row1['course_title']."</b>"; ?></tr>  
    </td>  
</table>  

Right after that:

<?php       
//This php will enable documents to be embedded with Microsoft Word

header("Content-type: application/msword"); //Document will be embedded using the application, Microsoft Word  
header("Content-disposition: attachment; filename= \"Certificate for ".$row['fname']." ".$row['lname']."\""); //States the file name when opened to edit or view  
?>

The problem is in that <img> tag. Without the last lines of PHP codes, the image appears. With it, the image just won’t show in the MS-Word.

Any idea how to solve this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T17:07:30+00:00Added an answer on May 19, 2026 at 5:07 pm

    The image won’t appear when opened in Word because word is running on the client’s desktop and looking for the image locally… unless you specify a full URL for the image file, it doesn’t know to look on your server.

    Options:

    • Modify your HTML so the image binary is embedded rather than a link
    • Use the full URL for your image
    • Create a “real” word document, with the image correctly embedded rather than as a link
    • Create a PDF with the image embedded rather than linked, or linked using the full URL
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have my pickerview set up and everything works fine, but right now I
I have made a list with few elements in it. Now everything looks right,
ok so this problem is kinda weird because the NSLog I have right in
I have a .js.erb file that renders a Ruby partial. Right now, everything works
Right now I have backup and swapfile turned off in my vimrc, like this
I'm pulling my hair out right now because of this. I have downloaded and
I right now have a problem that is rather confusing to me: I have
Good day! I right now have a function the drags an element from a
Right now I have an upload field while uploads files to the server. The
Right now I have a script that will get the last five files in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.