Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP returned code not showing up, but it used to
    text
    copied!<p>I run a website for my church. In a database on the server, we store all of the newest sermons' information so that when a user clicks a button on the first page, the newest sermons will show up in a div. For a long time, everything was working just great, but now, the returned code just doesn't show up.</p> <p>The weird thing is, if I open the page in Google Chrome and hit "Inspect Element" over the div, the returned code just appears. It looks perfect... After I have done that, clicking on the button will again load the info from the database and it will show up; if I refresh the page, however, the returned stuff goes away again until I inspect the element.</p> <p>Try it for yourself <a href="http://faithlifefellowship.us" rel="nofollow">here</a>. Click the orange button labeled "New Message."</p> <p>NOTE: </p> <ul> <li>The div that pops up is id <strong>navNew</strong></li> <li>The background transparent div that pops up is id <strong>navBackground</strong></li> <li>Within the div id navNew, I have a p id <strong>navNewBody</strong> that holds the information returned by the get PHP page below.</li> </ul> <p>My code for the PHP getter page:</p> <pre><code>&lt;?php $link = mysql_connect('domain', 'username', 'password'); if (!$link) { die('Could not connect: ' . mysql_error()); } mysql_select_db(flf); $r = mysql_query("SELECT * FROM new"); $first = mysql_num_rows($r); $last = $first - 20; echo '&lt;p class="NavHead"&gt;New Sermons&lt;br/&gt;&lt;table width="90%" border="0" cellpadding="0" cellspacing="0"&gt;'; $ind = 0; while($first &gt; $last){ $me=mysql_fetch_array(mysql_query("SELECT * FROM new WHERE id='" . $first . "'")); $name = $me["name"]; $row = 21-$ind; echo '&lt;tr id="row' . $row . '" class="navClosed" onclick="expand(' . "'" . 'row' . $row . "'" . ',' . $row . ')"&gt;&lt;td colspan="4"&gt;&amp;nbsp;' . $name . '&lt;/td&gt;&lt;/tr&gt;&lt;tr id="row' . $row . 'e" style="visibility: hidden" class="navOpenClosed" onclick="dismiss(' . "'" . 'row' . $row . "'" . ')"&gt;&lt;/tr&gt;'; $first = $first - 1; $ind = $ind + 1; } echo "&lt;/table&gt;&lt;/p&gt;"; ?&gt; </code></pre> <p>And here is the code I use to access the page (yes I imported jQuery):</p> <pre><code>function retNew(){ document.getElementById("navNewBody").innerHTML = '&lt;span class="NavHead"&gt;&lt;p align="center"&gt;Loading...Please Wait...&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;img src="Sermons/Style/Loading.gif" /&gt;&lt;/p&gt;&lt;/span&gt;'; document.getElementById("navNew").style.visibility = "visible"; $("#navNewBody").load("retNew.php"); } </code></pre> <p>What's wrong? It just doesn't make sense to me. I set the z-index to 10,000,000 and nothing happened. Any ideas? Thanks in advance.</p>
 

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