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 6782333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:43:44+00:00 2026-05-26T16:43:44+00:00

I use table to fetch cars information from my database and each column in

  • 0

I use table to fetch cars information from my database and each column in this table contain car information’s but in the last column i want to view in it car picture which is save in my database, i already have my code to fetch picture from my database and can view it in the browsers directly. but how i can view the picture directly in the table column without open the picture in new windows.
view code

while($rows=mysql_fetch_array($result)){
?>
<tr>
<td class="style1"><?php echo $rows['branch']; ?></td>
<td class="style1"><?php echo $rows['model']; ?></td>
<td class="style1"><?php echo $rows['doors']; ?></td>
<td class="style1"><?php echo $rows['fuel']; ?></td>
<td class="style1"><?php echo $rows['engine']; ?></td>
<td class="style1"><?php echo $rows['colo']; ?></td>
<td class="style1"><?php echo $rows['wheel']; ?></td>
<td class="style1"><?php echo $rows['condit']; ?></td>
<td class="style1"><?php echo $rows['warranty']; ?></td>
<td class="style1" style="width: 47px"><?php echo $rows['price']; ?></td>
<td class="style1"><?php echo $rows['CarOwner']; ?></td>
<td align="center" class="style3"><a href="info.php?id=<?php echo $rows['CarOwner']; ?>"><?php echo $rows['CarOwner']; ?></a></td>
<td align="center" class="style3"><?php echo "download.php"; ?></td>

and this download image from MySQL

<?php
//$id    = $_GET['id'];
include_once 'D_B.php';// Connect to server and select database.
$query = "SELECT `name`, `type`, `size`, `content`  FROM `upload` WHERE `id`='1'";
$result = mysql_query($query) or die('Error, query failed');
list($name, $type, $size, $content) =mysql_fetch_array($result);

header("Content-length: $size");
header("Content-type: $type");
echo $content;
exit;
?>
  • 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-26T16:43:45+00:00Added an answer on May 26, 2026 at 4:43 pm

    Just use the address of your link as src attribute of <img> tag, like this:

    <td><img src="image.php?id=<?php echo $rows['imageId']; ?>"/></td>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to fetch count from table per day but the time column is
I am trying to fetch some records from table but when i use OR
I had seen a colleague use this to fetch users from a table under
I want to use cursor to delete record from table. How can I do
I use the next code to retrieve data from a table in the database:
I'm try to use the following script to fetch user data from a table
i want to fetch the count from three different table which is not related.
This is from a sql script. What tool can generate this? Thanks --USE [MY_TABLE]
What is the use of sessions table in drupal? Sometimes this table is crashed,
I want to customize the project page (trac/templates/index.html). I want to use a table

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.