Table no results IE/Firefox issue... again (FIXED)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
synical21
Forum Contributor
Posts: 150
Joined: Tue Jul 28, 2009 8:44 am
Location: London UK

Table no results IE/Firefox issue... again (FIXED)

Post by synical21 »

Wish i had never opened my site with IE *sigh* another problem where i can only fix one and not the other. Basically i have a table and when no results are shown it displays some text. This version works in firefox:

Code: Select all

// IF NO RESULTS
if (!mysql_num_rows($result)) 
{
    echo "You have not completed any jobs yet. Click Available Jobs in the workers menu to start.";
}
When i tried this in IE all the text was in a single column which made it look very very wrong like this
You have not
completed any
jobs yet. Click
Available.. etc
So i did this to try fix it.

Code: Select all

 
// IF NO RESULTS
if (!mysql_num_rows($result)) 
{
    echo "<tr><td colspan='4'>You have not completed any jobs yet. Click Available Jobs in the workers menu to start.</td></tr>";
}
Then success the sentence came out as a sentence, i go back to firefox and now it has the problem IE had where the sentence is in one column.
Im going round in circles now why wont they both just work :banghead:


EDIT: I fixed it... Really got to stop coming here so fast :oops:
Post Reply