icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » Displays in Firefox but has Issues with IE

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old December 12th, 2004, 5:54 PM   #1 (permalink)
DemonicAngel
Super #1
 
twirp's Avatar
 
Joined in Aug 2004
Lives in Wherever The World Takes Me
Hosted on Pass76
1,847 posts
Gave thanks: 28
Thanked 35 times
Displays in Firefox but has Issues with IE

I personally think Bill Gates is out to get me bacause he's jealous of my supior brain (just a personal dream or mine...)
But yeah...
it's PHP and displays fine in firefox but has issues with Internet Explorer...
And i don't see why.
So here's my code:
PHP Code:
<div class="tblhd">News:</div><br>
<?php
$q 
"SELECT * FROM news ORDER BY id DESC ";
$read mysql_query("$q");

$rows_per_page=5// adjust the number here to display number of entries per page
$total_records=mysql_num_rows($read);
$pages ceil($total_records $rows_per_page);
mysql_free_result($read);

if (!isset(
$screen))
$screen=0;
$start $screen $rows_per_page;
$q .= "LIMIT $start, $rows_per_page";
$readmysql_query($q) or die("Could not execute query : $q." mysql_error());
while(
$d=mysql_fetch_array($read)){
    echo
"<div class=\"head\">";
    echo
"<div class=\"tblhd\" align=\"center\">$d[title]</div>";
    include
"na.php";
    
$post str_replace("\n","<br />",$d[post]);
    
$post check_tags($post$allowed);
    echo
"$post";
    include
"ns.php";
    
$coms mysql_db_query($db,"SELECT * FROM comments WHERE id='$d[id]'");
    
$comn mysql_num_rows($coms);
    echo
"<div align=\"right\">Posted By: <a href=\"index.php?mode=bio&who=$d[who]\">$d[who]</a> On: $d[date]</div>";
    echo
"<div align=\"right\"><a href=\"index.php?mode=comment&id=$d[id]\">$comn weren't perfect!</a></div>";
    echo
"</div><br>";
}
// create the dynamic links
if ($screen 0) {
$j $screen 1;
$url "main.php?screen=$j";
echo 
"<a href=\"$url\">«</a>";
}

// page numbering links now
$x 5;
$lx $x;
$pg $screen+$x;
while(
$pg>$pages){
    
$x $x-1;
    
$pg $screen+$x;
}
if(
$x<$lx){
    
$y $lx-$x;
    
$to $screen-$y;
    while(
$to<0){
        
$to++;
    }
}
if(!isset(
$to)||$to==""){
    for (
$i=0;$i<$screen;$i++){
        
$url "index.php?mode=$mode&screen=" $i;
        
$j $i 1;
        echo 
" | <a href=\"$url\">$j</a> | ";
    }
}else{
    for (
$i=$to;$i<$screen;$i++){
        
$url "main.php?screen=" $i;
        
$j $i 1;
        echo 
" | <a href=\"$url\">$j</a> | ";
    }
}

for (
$i=$screen;$i<$pg;$i++) {
    
$url "main.php?screen=" $i;
    
$j $i 1;
    echo 
" | <a href=\"$url\">$j</a> | ";
}

if (
$screen $pages-1) {
    
$j $screen 1;
    
$url "main.php?screen=$j";
    echo 
"<a href=\"$url\">»</a>";
}

?>
if you can't tell it's a News script, (people tell me i code wierd)
And the url is http://xm.twirp.net
In internet explorer
In firefox
Please help...
__________________
You wear Vans so high school kids will think that you can skate. He wears Vans because he can skate. TwiRp wears Vans because they were on sale. Pass76 wants Vans.
twirp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 12th, 2004, 10:08 PM   #2 (permalink)
Surpass Fan
On a golden path...
 
Joined in Jul 2004
372 posts
Gave thanks: 0
Thanked 0 times
i think ur site is down.
__________________
"I am one of the few honest people that I have ever known” ~~Nick, Great Gatsby
---
Don't ever argue with idiots. They drag you down to their level and beat you with experience.
darkzeroman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 16th, 2004, 5:08 PM   #3 (permalink)
Registered User
Fresh Surpasser
 
Joined in Sep 2004
17 posts
Gave thanks: 0
Thanked 0 times
Shows up fine in my IE
__________________
Negative-Shock.net
andy - ns is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 16th, 2004, 8:35 PM   #4 (permalink)
Surpass Fan
Comfy Contributor
 
pbflash's Avatar
 
Joined in Sep 2004
209 posts
Gave thanks: 0
Thanked 0 times
Looks fine in my IE also.
__________________
Pass14
www.tqwebservices.com
www.autoappraisalsunlimited.com
www.clevelandlayne.com
Pass18
www.estateagency.com.au

Some people drink deeply from the fountain of knowledge. Others just gargle.
pbflash is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 17th, 2004, 6:13 PM   #5 (permalink)
DemonicAngel
Super #1
 
twirp's Avatar
 
Joined in Aug 2004
Lives in Wherever The World Takes Me
Hosted on Pass76
1,847 posts
Gave thanks: 28
Thanked 35 times
yeah, i changed it to tables, but i would perfer divs
__________________
You wear Vans so high school kids will think that you can skate. He wears Vans because he can skate. TwiRp wears Vans because they were on sale. Pass76 wants Vans.
twirp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On