Jump to content

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


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>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.