PDA

View Full Version : A little help



Liberation
21-12-2006, 11:24 PM
Hey all

Just a quick question

My site www.musicxq.com (http://www.habboxforum.com/www.musicxq.com) well if you look at the Navagation you will se it has lots of [][][][][] at the end for some reason. I was wondering why this is and if you could help. The code in the Navagation file is:


<?
include "config.php";


$sql = mysql_query("SELECT * FROM `nav` ORDER BY `id` ASC");
while ($disp = mysql_fetch_array($sql)) {

echo ("

<a href=\"$disp[url]\">[$disp[name]]</a> |
");

}

?>

So, if you could help me and get that sorted it would be great
Thanks in advance

Invent
21-12-2006, 11:27 PM
Like I said, its your SQL im sure...

Dentafrice1
22-12-2006, 04:13 PM
Its your SQL.

I think you might be calling a column name that isnt there.
[$disp[name]]

Its running through it correctly but it cannot pull $disp[name] out of the DB.

hence why its showing all the []'s

;)

Invent
22-12-2006, 04:24 PM
Kevin I think the column is there, as he has SOME navigation links.

I think he just has some empty rows?

Dentafrice1
22-12-2006, 04:28 PM
Maybe he does..

His domain doesn't even work for me so im going off the top of my head..

Im thinking its either empty rows or the column is undefined

:Blob
22-12-2006, 04:31 PM
perhaps there is empty stuff in the db

Liberation
22-12-2006, 05:54 PM
Proablem Solved.... Thread Closed ;]

Want to hide these adverts? Register an account for free!