php blob - display in html table
From: adam (adamnichols45_at_hotmail.com)
Date: 11/16/04
- Next message: John Sjouken: "Re: PHP to create CSV that Excel can read"
- Previous message: Pedro Graca: "Re: Directory listing with file info"
- Next in thread: Bent Stigsen: "Re: php blob - display in html table"
- Reply: Bent Stigsen: "Re: php blob - display in html table"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 16 Nov 2004 13:07:58 -0800
Hi, I have an issue that i just cant seem to figure out hope some one
can help.
right i am getting people to input the own images directly into a blob
within a mysql database. then on the next page i want to display the
image with in a nicely formatted html table so i can put the image
where i choose on the page
*this code is only putting the image on the top of the page and wont
let me output any other text etc*
here is the code to display the blog image file-
<?php
$id;
// you may have to modify login information for your database
server:
@MYSQL_CONNECT("localhost","root","admin");
@mysql_select_db("tablename");
$query = "select bin_data from binary_data where id=$id";
$result = @MYSQL_QUERY($query);
$data = @MYSQL_RESULT($result,"bin_data");
echo $data;
?>
<html>
<head>
<title>Untitled</title>
</head>
<body>
</body>
</html>
Please i am most grateful to any one that can help best regards adam
- Next message: John Sjouken: "Re: PHP to create CSV that Excel can read"
- Previous message: Pedro Graca: "Re: Directory listing with file info"
- Next in thread: Bent Stigsen: "Re: php blob - display in html table"
- Reply: Bent Stigsen: "Re: php blob - display in html table"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|