Jnerocorp Posted October 3, 2009 Share Posted October 3, 2009 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> Quote Link to comment https://forums.phpfreaks.com/topic/176427-solved-foreach-array-displaying-at-the-bottom-of-the-page-please-help/ Share on other sites More sharing options...
Jnerocorp Posted October 4, 2009 Author Share Posted October 4, 2009 Nevermind figured it out myself Quote Link to comment https://forums.phpfreaks.com/topic/176427-solved-foreach-array-displaying-at-the-bottom-of-the-page-please-help/#findComment-929961 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.