0

i'm storing 2 images at a time in my database table in a single row.
1st image was Applicant Photo Name as Image In Db & Second Image Was Applicant Sign Name as Sign in Db.
So I'm retriving Both At single shot.But I'Want To Display Images Both At a Time..
Please Help Me.

  $sql = "SELECT image,sign FROM test WHERE id=" .$_GET['id'] . ";";

     // the result of the query
     $result = mysql_query("$sql") or die("Invalid query: " . mysql_error());

     // set the header for the image
     //header("Content-type: image/jpeg");
     //echo mysql_result($result,0);
      // close the db link
    while($row=mysql_fetch_array($result))
    {
    header("Content-type: image/jpeg");
        echo $row[0];
        echo $row[1];
    }

Quoted Text Here

But it Was Displaying Image Only..Help me How to dispaly Both At Once...

2
Contributors
1
Reply
5
Views
4 Years
Discussion Span
Last Post by AARTI SHRIVAS
0
while($row=mysql_fetch_array($result))
    {
    header("Content-type: image/jpeg");
       ?> 
    <img src="<?php echo $row['image'];?>">
    <img src="<?php echo $row['sign'];?>">
    <?}?>

apply this code i m not sure it will working or not i m not test it

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.