Devam Ediyor

504379 Simple php list - print 10 rows even if result is 6

I need code to generate a fixed list of 10 data variables each separated by an opening and closing ^.

The data is to be pulled off table of images where the picture id (pid) matches.

If there are less than 10 images the code should generate still generate the opening and closing symbols ^^

I have the code to pull the data in the correct format, but it only writes code where there is fields in the table - so if there are only 4 images it writes 4 lines.

^[url removed, login to view]^[url removed, login to view]^[url removed, login to view]^

Simple job, but I can't get it to work!!

I attach my php code and the html it generates.

I also tried an alternative based on pullingoff the $i and defining 10 lines of code, but had errors such as it bulling the data off other records if there were no images.

Beceriler: Her şey Kabul, PHP, SQL

Daha fazlasını gör: matches list, list matches, sql less than, rows, print only, list pull, format php code, html table jpg, html table print, php code format, php attach, generate table php, php sql html, fixed table php code, pull data sql, Print work, html jpg php, print sql, sql simple work, print images, result based, data print job, html print, simple php html work, list format

İşveren Hakkında:
( 46 değerlendirme ) Manchester, United Kingdom

Proje NO: #2250303