![]() |
|
#1
|
|||
|
|||
How to display image with 3 records per rowCurrently i have a problem on how to display 3 images in one row. Next, I will display for the next 3 records. Below is the example of the coding:-
PHP Code:
Now, i just display an image per row as if we go thru the whole records, for example like this:- PHP Code:
I hope you will get what i means. Your help very appreciated. Regards Hazh Last edited by LuciWiz : 03-Mar-2006 at 10:41.
Reason: Please insert your Php code between [php] & [/php] tags
|
|
#2
|
|||
|
|||
Re: How to display image with 3 records per rowYou have the right idea, but there are certain areas that need a little work to fix it up right. I'll give a few suggestions, although you weren't clear on what the exact problem is, I still found things to debug.
Original Code: PHP Code:
Should be: PHP Code:
Most of your errors were simple and lay in syntax such as having double quotes or single quotes. For instace. listrec["img1] should have been listrec['img1']. You have to make sure that anything inside of an array (this being a mysql_fetch_array) needs to be surrounded by single quotes when in a PHP bracket. Also, doing <?php ?> isn't always necessary, you can simply do <? ?>, it is the same thing. That is more a guideline than a rule, but it makes things go smoother and faster, and shortens the code a bit. I hope this helps a little! EDIT: If for whatever reason you decide to copy any part of this code verbatim, be sure to remove the // remarks. ( "// end PHP" ) the little side note things. Some of those don't belong there and they are only for your guidance to help you out, remove them from the code if you use any line with it on there. |
Recent GIDBlog
First week of IA training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| display problem in firefox and opera | batrsau | Web Design Forum | 4 | 09-Dec-2005 03:18 |
| display raw image in a frame | htv22 | MS Visual C++ / MFC Forum | 0 | 18-Jul-2005 19:34 |
| GIM gidedit - a fltk fluid resize project | cable_guy_67 | FLTK Forum | 2 | 01-Jun-2005 15:00 |
| Checking source codes of image, audio and video files | onauc | C Programming Language | 5 | 26-Feb-2005 21:47 |
| display image on tv monitor | Hood | Graphics Forum | 0 | 04-May-2004 16:21 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The