Code working in IE but not FireFox


Posted on 16th Feb 2014 07:03 pm by admin

I created a dynamic navigation list for my website based off of a table in my database. The code is working perfectly in IE (I have version 8 on this computer) But it wont work on Firefox. I'm not 100% positive that it is the PHP code causing problems either. The php code that I am using is as follows:

Code: $sql = "SELECT Category_Name From Blog_Categories";
$result = $this->dbc->query($sql);
while($row = mysql_fetch_assoc($result))
{
echo "<li>";
$name=$row['Category_Name'];
echo '<a href="'.$name.'.php">';
echo "$name";
echo "</a>";
echo "</li>";

This renders the following HTML on the page:

Code: <li><a href="Sql Queries.php">Sql Queries</a></li>
<li><a href="Random Code.php">Random Code</a></li>
<li><a href="Tech Support.php">Tech Support</a></li>

My only other thinking is that it could be my div blocks overlapping that are causing problems, but during my testing (Before I put the PHP code in to populate the nav bar and it was just test links) everything was working fine in Firefox.

Thanks for the help

No comments posted yet

Your Answer:

Login to answer
227 Like 45 Dislike
Previous forums Next forums
Other forums

Schedule editor
Hi,

I have a question related to Schedule editor.
If we schedule a BLS for every 30

Do While statement
hi guys,

This may sound trivial but im new to php and as part of an assignmenti have to const

SMTP server...
I recently found a tutorial online on SMTP authentification for sending emails from webpages, here i

Select question
Hi,

First I would like to say that php is pretty new for me..
so please don't shoot me if

Dynamic Data + Sql Server 2005 Enterprise?
Hi! I have just started to learn ASP.NET, and it looks like it is quite a lot to learn. Im not reall

Search function
I am looking for some guidance from the experts.

I am trying to create a search function. It

php global variable
how can we create global variable so we can use its value in any form.. Please give example to

How to return to a previous page after running a PHP script
I'm having a bit of a melt down here because I think this should be really easy but can't work it ou

Looping Problem
I've got a client that has a database with about 200 events at any given time. I'm trying to loop t

Parse String
I need to parse the string below into three variables. How would I do that?

john + 10/20/2008

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash