PHP Classes

Insert an Image

Recommend this page to a friend!

      DrasticTools  >  All threads  >  Insert an Image  >  (Un) Subscribe thread alerts  
Subject:Insert an Image
Summary:Is possible?
Messages:5
Author:Sergio Lanza
Date:2008-12-05 11:22:22
Update:2009-04-09 09:39:23
 

  1. Insert an Image   Reply   Report abuse  
Picture of Sergio Lanza Sergio Lanza - 2008-12-05 11:22:22
Hi, I have a mysql table with a field with a image path (ex: /images/john.png) and I would like to insert this photo or image into the grid.

Is this possible?

Thanks,

Sergio.

  2. Re: Insert an Image   Reply   Report abuse  
Picture of Vevmesteren Vevmesteren - 2008-12-06 15:42:06 - In reply to message 1 from Sergio Lanza
Do you mean the actual data of the image, or simply the path to? mySql cannot, as far as I understand (Guru's correct me if I am wrong) store data other then textual (though typed - but not objects as such).
So you'd need to upload the photo with PHP then store a reference to it in your DB
V

  3. Re: Insert an Image   Reply   Report abuse  
Picture of Vevmesteren Vevmesteren - 2008-12-06 15:43:50 - In reply to message 2 from Vevmesteren
oops I saw your question directly in the newsletter, and did not realize you where talking about the Drastic Tools Grid, please forgive...I am new here :)

V

  4. Re: Insert an Image   Reply   Report abuse  
Picture of dd dd - 2008-12-27 23:31:07 - In reply to message 1 from Sergio Lanza
Hi Sergio,

Well that functionality is currently not in the drasticgrid, but it could certainly be included without too much effort.
I will put it on the wish list for a coming version and if I have time will include the possibilityt to add images in cells.

regards, drasticdata

  5. Re: Insert an Image   Reply   Report abuse  
Picture of dd dd - 2009-04-09 09:39:23 - In reply to message 4 from dd
Hi Sergio,

Today we issues a new version of DrasticTools with support for images in the DrasticGrid. You can download the new version from www.drasticdata.nl

The release includes an example of the use of images in the grid. You can see it working in ExampleGrid8 on http://www.drasticdata.nl/DDHome.php?m=3

regards, drasticdata