Styles2304 Posted March 15, 2008 Share Posted March 15, 2008 The code: <?php $query = "SELECT * FROM Prayers WHERE Validate = 1 AND PoP = 'praise' ORDER BY IndexNo DESC"; $result = mysql_query($query, $link) or die(mysql_error()); $prayers = ' '; while ($row = mysql_fetch_array($result)) { $IndexNo = $row['IndexNo']; $EntryDate = $row['EntryDate']; $PrayFor = $row['PrayFor']; $Request = $row['Request']; $Relation = $row['Relation']; $PostBy = $row['PostBy']; $IndexNo = $row['IndexNo']; $prayers .=<<<EOD <table with="100%" cellpading="0" cellspacing="0" border="0"> <tr> <td colspan="2"> <b> EOD; if ($EntryDate != "0000-00-00") { $prayers .=<<<EOD $EntryDate - EOD; } if (($Relation == "") AND ($PostBy == "")) { $prayers .=<<<EOD $PrayFor</b> EOD; } elseif ($Relation == "") { $prayers .=<<<EOD $PrayFor</b> - Submitted by $PostBy EOD; } else { $prayers .=<<<EOD $PrayFor</b> - $Relation of $PostBy EOD; } $prayers .=<<<EOD </td> </tr> <tr> <td width="10"> </td> <td> $Request </td> </tr> </table> <center> EOD; if ($_GET['IndexNo2'] == $IndexNo) { $prayers .=<<<EOD <br> <form method="post" action="wcontrol/public_update.php?IndexNo=$IndexNo"> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr> <td width="33%" align="right" valign="top"> Entry Date: </td> <td align="left" valign="top"> <select name="EntryMonth"> <option value="01">01</option> <option value="02">02</option> <option value="03">03</option> <option value="04">04</option> <option value="05">05</option> <option value="06">06</option> <option value="07">07</option> <option value="08">08</option> <option value="09">09</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> </select> <select name="EntryDay"> <option value="01">01</option> <option value="02">02</option> <option value="03">03</option> <option value="04">04</option> <option value="05">05</option> <option value="06">06</option> <option value="07">07</option> <option value="08">08</option> <option value="09">09</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15">15</option> <option value="16">16</option> <option value="17">17</option> <option value="18">18</option> <option value="19">19</option> <option value="20">20</option> <option value="21">21</option> <option value="22">22</option> <option value="23">23</option> <option value="24">24</option> <option value="25">25</option> <option value="26">26</option> <option value="27">27</option> <option value="28">28</option> <option value="29">29</option> <option value="30">30</option> <option value="31">31</option> </select> </td> </tr> <br> <hr width="70%"> EOD; } else { $prayers .=<<<EOD <a href="prayer.php?IndexNo2=$IndexNo" class="white">Submit an Update</a> </center> <br> <hr width="70%"> EOD; } } echo $prayers; ?> Ok, here's what's supposed to happen: Once the prayer requests are displayed the user can click a link that allows them to submit an update. It opens up a little text box and date input tool, the user puts in the update, then the information is submitted. The problem: Only the text box is showing up. Also, if I completely delete the text box information and re-upload, the text box still shows up online. So the cache right? Well, to check that I deleted 2/3 of the entire page and guess what, he text box along with everything else I deleted disappeared. Quote Link to comment Share on other sites More sharing options...
Styles2304 Posted March 15, 2008 Author Share Posted March 15, 2008 Well I'm an idiot and this is solved . . . but I don't see the mark the topic solved button that's normally there . . . Quote Link to comment 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.