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);
Did you know?Explore Trending and Topic pages for more stories like this.
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

Reduce redundancies in switch functions?
Hello all! I somewhat new to PHP, and was wondering if anyone could give some suggestions on a swit

DELETE rows based on content
I have a link in my rows

$bit="http://bit.ly/abcd";
$query = mysql_query("D

How to have a log of all the status a VIM document had been ?
Hi guys,

I’m using SAP Invoice Management plugin and the /OPT/VIM_ANALYTICS transa

Not connecting to DB using ruby, error:env.c:257:in oci8lib.so: ORA-12154:
Hi All,

I am trying to connect to the database server from the client server using ruby and f

PHP/Database issue
My friend is helping me make a database where you go to a certain webpage of my site and the page wi

Staff Induction System - No idea where to go from here!!!
Hi there, I'm pretty new to PHP and Mysql so could really do with being pointed in the right directi

mysql timestamp manipulation
How could I use a timestamp (e.g 2009-10-30 13:20:35 ), and with php find out if it is:

from

Setting condidtions for an input box
Hi all,

I would like to set a condition in a txt box that says the number a user enters has t

Loops and Classes
I am making a template system and everything seems to be going well up until I have to loop in a var

Connect to database that isn't localhost
I am currently doing a small script for a company that doesn't have mySql support on there hosting.

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