PHP Help
PHP Help
Out of context: Reply #3
- Started
- Last post
- 10 Responses
- section_0140
uan is right, assigning it to a variable would have no effect on whether or not it is echoed.
I think the problem lies in the way you are echo'ing out $path$file. Generally, you should have a dot between them like this $path . $file
Finally, I think your quotation marks are off. Try this:
$images .= "{image : " . $path . $file . ", title : '', url : ''},";
- apparently you can echo string vars inside double quotes, but I wouldn't as it's not common practicesection_014