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

updating a single value to multiple non consecutive rows
I need to update the same value to multiple non consecutive rows. I need to add an experation date t

Backflush
I am looking for a report in SAP that would give me a list of all parts that are populated with a ba

Echoing ASCII code
I have a php page that splits a string into chars and then echoes the ASCII code for each char. I'm

Gerenate tabel in Php
I whant to generate a tabel takeing data from database like this one so the results to be display on

how can i display php source code snippets ?
I am outputting some pho code .. and I want to display the source code so people can copy and paste

Feed Maker
Hi all.
First of all I must say I am not a php developer so I am afraid I don't know much about i

Script not running properly
Hello Everyone
This is a basic script for posting to a database. I'm not sure why it doesn't work

How many users online in the last 24-hours using time()?
I'm fairly new to PHP. I have a MySQL table called 'users' and a field called 'loggedin' which is in

cURL proxy
Okay here is the thing... i know how to add proxys

Code: curl_setopt($ch, CURLOPT_PROXYTYPE,

Upload Code Help
Hi everyone I need some help with a bit of code ive been working with for a while. I am completely s

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