[PHP] Re: How to call image from mySql to php file

2007-02-24 Thread tedd
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

Re: [PHP] Re: How to call image from mySql to php file

2007-02-24 Thread Jim Lucas
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

Re: [PHP] Re: How to call image from mySql to php file

2007-02-23 Thread benifactor
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

[PHP] Re: How to call image from mySql to php file

2007-02-23 Thread Fahad Pervaiz
#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

[PHP] Re: How to call image from mySql to php file

2007-02-22 Thread Colin Guthrie
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

[PHP] Re: How to call image from mySql to php file

2007-02-22 Thread Colin Guthrie
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

Re: [PHP] Re: How to call image from mySql to php file

2007-02-21 Thread Kevin Waterson
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

[PHP] Re: How to call image from mySql to php file

2007-02-21 Thread Haydar TUNA
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

[PHP] Re: How to call image from mySql to php file

2007-02-21 Thread Haydar TUNA
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