Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7525937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:41:37+00:00 2026-05-30T03:41:37+00:00

It seems as though my simple php echo statement will not allow me to

  • 0

It seems as though my simple php echo statement will not allow me to display footer bars. When I comment out my php code and view my file the footer bar displays. When my php is running it does not show my footer. Any help would be great.

    <!DOCTYPE html> 
<html>
    <head>
<title>Mobile</title>
<!-- Include Jquery Mobile dependancies -->
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
</head>
<body> 

<div data-role="page">

    <div data-role="header">
        <h1>Page Title</h1>
    </div><!-- /header -->

    <div data-role="content">   
        <?php 

$Contents = file_get_contents("http://www.fsb.muohio.edu/directory");
$outer= explode('<div id="c1">',$Contents);
$inner = explode('<div id="c2"', $outer[1]);
$placeholder = array('<table border="0">',"</table>",'<tr>','</tr>','<td>','</td>' );
$replace = array("","","","<br/>","","");
$finished = str_replace($placeholder, $replace, $inner[0]);
echo $finished;
            ?>      
    </div><!-- /content -->

    <div data-role="footer">
        <h4>Page Footer</h4>
    </div><!-- /footer -->
</div><!-- /page -->

</body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T03:41:39+00:00Added an answer on May 30, 2026 at 3:41 am

    I think you’re missing a > at the end of the following div tag. (i.e. '<div id="c2">')

    $inner = explode('<div id="c2"', $outer[1]);
    

    Also, ensure you’re closing those divs and creating a valid HTML document.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I thought it was alias for simple foreign key relation ,but seems not. Can
It seems as though the following calls do what you'd expect (close the stream
I am using SQL Server Reporting Services 2008 (though this seems to be an
It seems that disabling a checkbox through the Disabled property also grays out the
I would like to step through Ruby code at runtime, but it seems difficult
I am making a simple select from mySQL using PHP. I am doing something
First of all, I just started PHP. I know my methods might not be
I know the post seems long, but I'm sure there's a very simple solution.
I have the following form in cakephp: <div class=quickcontactDisplay> <?php echo $form->create('Enquiry',array('action'=>'add','class'=>'quickcontact')); echo $form->hidden('visitor_id',
So I have this simple PHP loop that is generating html table data with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.