CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Image Src from Database

Print topic Send  topic

Author Message
mrgtron
Posted: 01/28/2003, 8:12 AM

I have image names in the database(jack.jpg) and I want to display them on a page using URL http://www.domain.com/folder/jack.jpg. (Jack.jpg is from the database) I am displaying it in a grid. How do I do that in CC.

I have been real frustrated with that.

Thank you.
RonB
Posted: 01/28/2003, 9:32 AM

it's been a while since I used CC (use ccs now) but here's a try:

in the before show event
$fldImage="<img src='http://www.domain.com/folder/" .$fldImage ."'>";
RonB
mrgtron
Posted: 01/28/2003, 12:57 PM

I have image names in the database(jack.jpg) and I want to display them on a page using URL http://www.domain.com/folder/jack.jpg. (Jack.jpg is from the database) I am displaying it in a grid. How do I do that in CCS.

I have been real frustrated with that.

Thank you Ron, I applozie I am using CCS. I didn't know there are different versions.
RonB
Posted: 01/28/2003, 3:28 PM

oke,
in the beforeshow event:

global $yourgrid;
$yourgid->imagefield->setvalue("<img src='http://www.domain.com/folder/" .$yourgid->imagefield->Value ."'>");


Ron
mrgtron
Posted: 01/31/2003, 12:12 PM

You lost me again, in Code Charger Studio. under Asp.NEt. Where do you input the code you just specified.
my picture in Database is store as just picture name (jack.jpg)
in the Grid i would like it appreal as an image with http://www.google.com/jack.jpg for example.. where do I go around doing that. in ASP.net we use formate (image, "http://www.google.com/{0}) do I need to do the same?

Thank you so much for your help Rob, it just very frustrating.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.