Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-10 Thread Sashikanth Gurram
haliphax wrote: On Mon, Mar 9, 2009 at 8:43 PM, Sashikanth Gurram wrote: Is there any way in which I can assign a variable to a query string? Like for example, Let us say that there are two php files a.php and b.php. I am currently using a image tag like in a.php and am passing the value

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-09 Thread Sashikanth Gurram
Thanks Shawn and Dollah -Sashi Shawn McKenzie wrote: Sashikanth Gurram wrote: haliphax wrote: On Mon, Mar 9, 2009 at 10:52 AM, Sashikanth Gurram wrote: haliphax wrote: On Mon, Mar 9, 2009 at 10:24 AM, Sashikanth Gurram wrote: Nathan Nobbe

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-09 Thread Sashikanth Gurram
n Tue, Mar 10, 2009 at 8:14 AM, Sashikanth Gurram wrote: Hello everyone, Is there any way in which I can assign a variable to a query string? Like for example, Let us say that there are two php files a.php and b.php. I am currently using a image tag like in a.php and am passing the value to

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-09 Thread Sashikanth Gurram
haliphax wrote: On Mon, Mar 9, 2009 at 10:52 AM, Sashikanth Gurram wrote: haliphax wrote: On Mon, Mar 9, 2009 at 10:24 AM, Sashikanth Gurram wrote: Nathan Nobbe wrote: On Mon, Mar 9, 2009 at 7:32 AM, Sashikanth Gurram mailto:sashi...@vt.edu>> wrote: Hi,

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-09 Thread Sashikanth Gurram
Thanks a lot everyone, particularly Haliphax, Nathan, Virgilio and Bob. I will try it and will come back to you. Thanks, Sashi haliphax wrote: On Mon, Mar 9, 2009 at 10:24 AM, Sashikanth Gurram wrote: Nathan Nobbe wrote: On Mon, Mar 9, 2009 at 7:32 AM, Sashikanth Gurram

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-09 Thread Sashikanth Gurram
. good luck, -nathan -- ~ ~~~~~~~~~ Sashikanth Gurram Graduate Research Assistant Department of Civil and Environmental Engineering Virginia Tech Blacksburg, VA 24060, USA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-09 Thread Sashikanth Gurram
ML tags to display your image!), I definitely need the HTML tags, because this application works based on the user input. So unless there is not input through a html form, it wont work. Thanks, Sashi On Mon, Mar 9, 2009 at 1:29 AM, Sashikanth Gurram wrote: Hi Nathan, Thanks a lot fo

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-09 Thread Sashikanth Gurram
_l mins\n $location\n \n"; } echo "\n"; header('Content-Type: image/jpeg'); imagejpeg(imagecreatefromjpeg("$location")); ?> Nathan Nobbe wrote: On Sat, Mar 7, 2009 at 9:36 PM, Sashikanth Gurram wrote: The thing is, I do not have a

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-09 Thread Sashikanth Gurram
ty_Spaces = $row[2]; $Distance = $row[3]; $time_l = $row[4]; $time_h=$row[5]; $location=$row[6]; echo "\n $building\n $parking_lot\n $Number_of_Empty_Spaces\n $Distance\n $time_h - $time_l mins\n $location\n \n"

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-07 Thread Sashikanth Gurram
e, that is causing the image to be displayed as binary. Is there any way we can convert the binary content to jpeg/jpg content again. This is my guess after having gone through the code again.\ Thanks, Sashi Nathan Nobbe wrote: On Sat, Mar 7, 2009 at 8:12 PM, Sashikanth Gurram wrote:

Re: [PHP] Retrieving Image Location in PHP from MySQL

2009-03-07 Thread Sashikanth Gurram
I am just storing the location of the image(as a varchar type), not the image itself. For example for a particular image, the location is stored as C:\wamp\bin\apache\apache2.2.8\htdocs\Bldgs_lots\Burruss.jpg -sashi Nathan Nobbe wrote: On Sat, Mar 7, 2009 at 7:10 PM, Sashikanth Gurram