PHP Questine
PHP Questine
Out of context: Reply #8
- Started
- Last post
- 12 Responses
- kingsteven0
you should use '.=' to append to $news_string & $news_string1, at the minute you're just re-setting the variable on every loop - so just getting the last item.
http://php.net/manual/en/languag…
btw. from experience when working with html it's much easier to debug when using single quotes for strings in php:
$somehtml = '<a class="external" href="'.$someurl.'" >'. $somesite .'</a>'
also, any particular reason for using document.write?