![]() |
For each question
Hello,
PHP Code:
Download Download It echos 2 links. I want to make string equals to the latest value in for each statement. How to do that ? |
That's hard to say without either seeing a copy of the array it's running off of, or the php that builds the data (and even then the data is probably still necessary).
|
Ok, is there anyway to make number to the beginning of the values in for each statement ?
If 2 values echoed, 1 - Download 2 - Download if 3 values echoed, 1 - Download 2 - Download 3- Download ? |
I have tried out your code sample and it works good for me with a mockup array
php Code:
It doesn't echo it twice. Maybe if we know the structure of the array like delayedinsanity said it would be easier to help you out. |
PHP Code:
|
| All times are GMT. The time now is 02:40 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0