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

CODE NOT WORKING
Code: [Select]<?php
//include shared codes

include '../lib/common.php';
include

Login Issue's
Code: <?php
$file = fopen('user.txt', 'r');

/* Set login to false initially */

division gives infinity anser
int main()
{
int z=0;
int i=1/z;
cout<
}

It doesn't throw a

webpage with (simple) login & mysql-db
Hi all,

What I was looking for before was a multi-user password manager, web-based! The offer

Storing Values taken from a DB...
Using this code it will generate a short list from my database

<?php
mysql_connect

IP Based Cron Jobs
I run cronjobs on my website. After one of my visitors got curious and tinkered around he realized h

Disable html within defined tags
I have a mysql database that allows users to enter content with html, but I also want to have a tag

C++ API to Oracle dB
I need to perform a select command to the Oracle dB to obtain information from a table.
What libr

DOMDocument
Hello All,

I need to take an XML document, modify some of the nodes in it and then perform a

Creating a function
Basically i wanna put all this code in a seperate file

Code: <?php

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