This is a discussion on "[SOLVED] display a image record from a database with a set size" within the PHP Forum section. This forum, and the thread "[SOLVED] display a image record from a database with a set size are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] display a image record from a database with a set size
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
[SOLVED] display a image record from a database with a set size
Hello i recently recieved help on how to display a image record from a mysql database into a table located on a php file. The image record is dislpaying but the problem i am having is that i need the image to be displayed at a certain size.
For instance my imagerecord is displaying in a tables with the code below
Width 200 Height 196 Could anyone give me a code example using the code above to display the image record from the database at a size of 200 by 196 ????? Cheers |
|
|
|
||||
|
Re: display a image record from a database with a set size
Yes...you can do as Karinne said or if you want to do it the php way, you would need to use the GD library
|
|
||||
|
Re: display a image record from a database with a set size
Yeah ... using ImageMagick or GD would make the images smoother ...
|
|
|||
|
Re: display a image record from a database with a set size
I am just currently looking into GD Library!! But could someone give me a code example of how to do it using Html as mentioned by karinne?? Using the code i sent... Cheers
|
|
||||
|
Re: display a image record from a database with a set size
I used the [ code ] tags to add color so you can see ... scroll to the very end
|
|
|||
|
Re: display a image record from a database with a set size
Fantastic it works!!! Thank you vary much karinne
|
|
||||
|
Re: display a image record from a database with a set size
Ah! No problem
|
|
||||
|
Re: display a image record from a database with a set size
Doing it the php way would be more useful if you have a huge picture which is large in filesize and would take a long time for the browser to download.
With php you could resize the image to a desired size (which would be done on the server very quickly) and the image would be downloaded by the browser much quicker. |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] image display php code problem | longstand | PHP Forum | 7 | Oct 19th, 2007 17:28 |
| [SOLVED] display image if javascript not enabled | Voodoochilli | JavaScript Forum | 1 | Oct 4th, 2007 13:58 |
| Variable record size in MySql? | wmw | Databases | 2 | Oct 6th, 2006 17:09 |
| display first only part of a database record. | Daddyohhh99 | Other Programming Languages | 0 | Feb 3rd, 2006 14:49 |
| display the number of record exist in the database | Monie | Databases | 1 | Aug 24th, 2004 08:10 |