![]() |
Output double
Hello,
My thanks in the beginning and please help understand what's the problem. I've started using php and trying to build my very first small website with a few categories and many pages. So I wrote a function: Code:
function getFirstMenu() {Code:
<ul>Code:
<li> |
Within the while loop add
var_dump($menu); and post that. Assuming that the <a/> is a typo just in the forum here, the output you have is consistent with 'cat_name' containing the value Name</a>\n<a>. So lets start there. |
Now that's embarrassing. Really... Love this forums. And I was like researching 3 hours to find why this can happen..
Thanks |
| All times are GMT +1. The time now is 11:05 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.