Display an image

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a longblob with a jpeg loaded in it. But how do I display it?

  `photo` longblob NOT NULL,

This doesn't work :) I need header information, etc. So what does?

  echo "<img src=".$mydata2->photo.">\n";

I don't have an example to work with.

John

----------snip-------------
$sql2 = "select * from ".$db.".".$table";

$news2 = mysql_query($sql2);

  echo "<img src=".$mydata2->photo.">\n";
  echo "<h3>$mydata2->Rank $mydata2->Name</h3>\n";
  echo "<small><i>$mydata2->biography</i></small>\n";
  }

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux