Note that there are some explanatory texts on larger screens.

plurals
  1. POPhp working on localhost but not on server
    primarykey
    data
    text
    <p>I've been working on some code and tested it on localhost, everything works fine, but when i upload it to my server it doesn't work beyond my php tags. No errors are showing either. I have checked both php versions and on localhost i run version 5.4.7 and on server it's version 5.3.21. Maybe this is causing the problem? Is there something I should look for in the phpinfo()? Am I missing something in my code? Here is the code: </p> <pre><code> &lt;!DOCTYPE html&gt; &lt;?php phpinfo(); ?&gt; &lt;html&gt; &lt;head&gt; &lt;script src="http://code.jquery.com/jquery-1.9.1.js"&gt;&lt;/script&gt; &lt;meta charset="utf-8"&gt; &lt;style&gt; body { background:black;} .toggle { display:none; } p { width:570px; text-align:justify; color:#686868; font-family:Georgia, serif; } h2 { color:black; } button { background:#686868; border:none; font-family:Georgia, serif; width:570px; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;?php include('sql.php'); $i = 0; while($i &lt; count($rows)) { echo " &lt;div&gt; &lt;button class='trigger'&gt; &lt;table width='100%'&gt; &lt;tr&gt; &lt;td width='20%'&gt;&lt;img src='http://localhost/app-side/Icons/bar_icon.png' /&gt; &lt;/td&gt; &lt;td width='80%'&gt;&lt;h2&gt;{$rows[$i]['titel']} &lt;/h2&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/button&gt; &lt;div class='toggle'&gt; &lt;p&gt; {$rows[$i]['info']} &lt;/p&gt; &lt;/div&gt; &lt;/div&gt;"; $i++; }?&gt; &lt;/body&gt; &lt;script&gt; $('.trigger').click(function() { $(this).siblings('.toggle').slideToggle('fast'); }); &lt;/script&gt; &lt;/html&gt; </code></pre> <p>When i run it, it shows a black background (as it's suppose to) but everything beyond my php starting tag gets cut off. I have also tried to force my while loop to loop 10 times and also removed the parts where it's getting data from my database to see if it was a mysql related problem. Which I can conclude it's not. </p>
    singulars
    1. This table or related slice is empty.
    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.
 

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