At 10:38 AM +0500 2/24/07, Fahad Pervaiz wrote:
There are two ways to store images in databases.
First is that you upload your images to a directory and store path to that
image in the database. In this case make sure that your field size is large
enough to store the complete path. You can use
a PHP notice warning
?>
hope it helps
- Original Message - From: "Fahad Pervaiz"
<[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>;
Sent: Friday, February 23, 2007 9:38 PM
Subject: [PHP] Re: How to call image from mySql to php file
#ORIGINAL#
I have
L PROTECTED]>
To: <[EMAIL PROTECTED]>;
Sent: Friday, February 23, 2007 9:38 PM
Subject: [PHP] Re: How to call image from mySql to php file
#ORIGINAL#
I have a field in database called "logos" which has one value
"images/logos/some_logo.jpg"
In my php I am
#ORIGINAL#
I have a field in database called "logos" which has one value
"images/logos/some_logo.jpg"
In my php I am trying to call it in my php file as image. With this code.
$sno = $_REQUEST['sno'];
$query="SELECT logos FROM table WHERE sno = '$sno'";
$result=mysql_query($query);
$nu
Hi,
Some points already given by others just reiterating:
Chris Carter wrote:
> $sno = $_REQUEST['sno'];
$_REQUEST is dodgy - you don't know what makes it up (cookies, post, get
etc.), only use it when it when you are sure.
> $query="SELECT logos FROM table WHERE sno = '$sno'";
NEVER do this
Kevin Waterson wrote:
> This one time, at band camp, "Haydar TUNA" <[EMAIL PROTECTED]> wrote:
>
>> Hello,
>>Firstly, your image table field should be BLOB field then you create
>> a image file (for example image.php). in this file, if your application is
>> more secure, you can control t
This one time, at band camp, "Haydar TUNA" <[EMAIL PROTECTED]> wrote:
> Hello,
>Firstly, your image table field should be BLOB field then you create
> a image file (for example image.php). in this file, if your application is
> more secure, you can control the session variables. You get
Hello again,
I make a mistake in the image.php code at echo($row['resim']);
line. if you change this line echo($row['picture']) , your problem will be
fixed. :
I have written table field in Turkish. in Turkish picture means that resim
:)
--
Haydar TUNA
Republic Of Turkey - Mi
Hello,
Firstly, your image table field should be BLOB field then you create
a image file (for example image.php). in this file, if your application is
more secure, you can control the session variables. You get key column of
your BLOB table (for example id, studentnumber and so on) with s
9 matches
Mail list logo