Jump to content

[SOLVED] foreach array displaying at the bottom of the page. please help?


Jnerocorp

Recommended Posts

Ok the site is here:

 

http://joeyelectric.com/demos/pagerank

 

Here are the problems

 

1. The Information after you submit the form all displays at the bottom instead of where I placed the code.

2.The Google Backlinks # are displaying above the updates box

 

Here is the code

 

<table border="0">
<?php

$url = $result['url'];
$pagerank = $result['pagerank'];
$alexrank = $result['alexarank'];
$dmoz = ($result['dmoz']) ? 'Yes' : 'No';
$yahoodir = ($result['yahooDirectory']) ? 'Yes' : 'No';
$googlebl = $result['backlinksGoogle'];
$yahoobl = $result['backlinksYahoo'];
$bingbl = $result['backlinksBing'];
$askbl = $result['backlinksAsk'];
$altavista = $result['altavista'];
$alltheweb = $result['alltheweb'];
$estibot = $result['estibot'];
$domainage = $result['age'];

    $a = array("Website Url:</td> <td> $url", "Pagerank: </td> <td> $pagerank", "Alexa Rank </td> <td> $alexarank", "Dmoz: </td> <td> $dmoz", "Yahoo Directory: </td> <td> $yahoodir", "Google Backlinks: <td> </td> $googlebl", "Yahoo Backlinks: </td> <td> $yahoobl","Bing Backlinks: </td> <td> $bingbl", "Ask Backlinks: </td> <td> $askbl", "AltaVista Backlinks: </td> <td> $altavista", "AllTheWeb: </td> <td> $alltheweb", "Estimated Value: </td> <td> $estibot", "Domain Age:</td> <td> $domainage");

    foreach($a as $row){
       echo "<tr><td> $row </td></tr>";
    }

            }

        }
    ?>
    <br>
<script type="text/javascript">
//new pausescroller(name_of_message_array, CSS_ID, CSS_classname, pause_in_miliseconds)
new pausescroller(pausecontent, "pscroller1", "someclass", 3000)
</script>
<br />
<a href="./updates.php">View All Updates</a>
<br /><br />
Copyright © 2009, <a href="index.php">Your Domain</a></center><br><br><br>
</body>
</html>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.