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

A problem with my GD class
Hello,

I created a nice (and simple for now) GD class.
The problem is , it works great on

Last character removed
I have created a string from an array. I have inserted commas from my form values. I am trying to re

COde for a Cc
I'm not receiving $ft as a Cc. Why is that??

$to = "$email";
$headers = "Fr

Setting/Modify Headers using mail() function
I have a question about setting email headers when using mail() in a php script.

When I send

Streaming local file from PHP while it’s been written to by a CURL process
I am creating a simple Proxy server for my website. Why I am not using mod_proxy and mod_cache is a

Inserting a check in checkbox from array value
Hello all,
I have a bit of code that works for a select option box, but does not work for my chec

Am i doing this wrong?
Im pulling from an Oracle database some info... one of which is a field count_pnums which is a NUMBE

delete comma
HI,

How to delete "," at the end of the string.
Code: $match = 2009/02/03/a2corr

Display data returned from Ajaxservices!!
I have a question about displaying results using ajax. I have part of the code below.
$.ajax({

Internal class functions don't seem to get executed.
Hi. Can someone please put me out of my misery on this. I don't write much PHP and this has me baffl

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