Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP not showing properly after reinstall Apache 2 and PhpMyAdmin
    primarykey
    data
    text
    <p>I had a problem with Apache 2 and PhpMyAdmin. I reinstalled them and now they are working but I have a problem with my .php pages.</p> <p>I have an index.php:</p> <pre><code>&lt;?php include_once 'header.php'; include_once 'sidebar.php'; ?&gt; &lt;?php include_once 'footer.php'; ?&gt; </code></pre> <p>But if I go into localhost it shows me just the header. <pre><code>?&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Game&lt;/title&gt; &lt;link rel="stylesheet" type="text/css" href="style.css"&gt; &lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="header"&gt;Header&lt;/div&gt; </code></pre> <p>connect.php works because if I chance the password for example it shows me an error. I really don't know what is happening. If someone had a problem similar like this. I really don't know what is happening. </p> <p>sidebar.php (not the whole file):</p> <pre><code>&lt;div id="content"&gt; &lt;div id="sidebar"&gt; &lt;?php /** * Health Class */ class HealthClass { //some code &lt;?php if (isset($_SESSION['id'])) { //some code }else{ ?&gt; &lt;form action="login.php" method="post"&gt; Username: &lt;input type="text" name="username"&gt; Password: &lt;input type="password" name="password"&gt; &lt;input type="submit" name="login" value="login"&gt; &lt;/form&gt; &lt;? } ?&gt; &lt;?php if (!isset($_SESSION['id'])) { print "&lt;a href='register.php'&gt;Register&lt;/a&gt;"; }else{ print "&lt;a href='logout.php'&gt;Logout&lt;/a&gt;"; } ?&gt; &lt;/div&gt; &lt;div id="main"&gt; </code></pre> <p>Thank you</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload