Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy do I see a blank screen after form submission in PHP?
    primarykey
    data
    text
    <p>For the life of me I can't find what's wrong. It's just a search using the "num" field to pull from database and display all other row info for the corresponding number. Please help :/</p> <pre><code>&lt;form action="search.php" method="post"&gt; Number :&lt;input type="text" value="&lt;?php if(isset($num)) echo $num;?&gt;" name ="number"/&gt; &lt;input type="submit" value="Search"/&gt; &lt;/form&gt; &lt;?php if($_POST) { $query = "SELECT * FROM r5s WHERE num = '$num'"; $result = mysql_query($query) or die(); $count=mysql_num_rows($result); if($count==0 &amp; $num!="") { echo "The number is not found.&lt;br/&gt;Please try again with correct number."; } while($row = mysql_fetch_array($result)) { ?&gt; &lt;p class="title-table"&gt;Renter profile&lt;/p&gt; &lt;table class="view-result"&gt; &lt;tr&gt;&lt;td&gt;&lt;span class="header-field"&gt;Name&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;&lt;span class="result-field"&gt;&lt;?php echo $row['name'];?&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;&lt;span class="header-field"&gt;SSN&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;&lt;span class="result-field"&gt;&lt;?php echo $row['num'];?&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;&lt;span class="header-field"&gt;DOB&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;&lt;span class="result-field"&gt;&lt;?php echo $row['birth'];?&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;&lt;span class="header-field"&gt;Rating&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;&lt;span class="result-field"&gt;&lt;?php echo $row['rank'];?&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;&lt;span class="header-field"&gt;History&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;&lt;span class="result-field"&gt;&lt;?php echo $row['hist'];?&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;&lt;span class="header-field"&gt;Comments&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;&lt;span class="result-field"&gt;&lt;?php enter code here`echo $row['comments'];?&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt; &lt;?php } mysql_close($conn); } ?&gt; </code></pre>
    singulars
    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.
 

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