title: php search database for row
body: <p>Okay I got code the code to pull data based on a users account number</p>
  
  <p>well here is what im using  (And yes I know it isnt safe now that is the reason for my post)</p>
  
  <pre><code>&lt;?php
  
  include('config.php');
  
  $user_info = fetch_user_info($_GET['AccountNumber']);
  
  ?&gt;
  &lt;html&gt;
  &lt;body&gt;
  &lt;div&gt;
  &lt;?php
  if ($user_info === false){
  $Output = 'http://www.MyDomain.Com/';
  echo '&lt;META HTTP-EQUIV=Refresh CONTENT="0; URL='.$Output.'"&gt;';
  }else{
  ?&gt;
  &lt;center&gt;
  &lt;title&gt;&lt;?php echo $user_info['FirstName'], ' ', $user_info['LastName'], ' - ',     $user_info['City'], ', ', $user_info['State']; ?&gt; - Name of site&lt;/title&gt;
  </code></pre>
  
  <p>So basically what this code is allowing me to do is have a file called Profile.php And when a user visits this page it will return the data. </p>
  
  <p>Like this <a href="http://MyDomain.com/Profile.php?AccountNumber=50b9c965b7c3b" rel="nofollow">http://MyDomain.com/Profile.php?AccountNumber=50b9c965b7c3b</a></p>
  
  <p>How can I do this securely cause right now its using a get method really unsafe to retrieve the account number from the url bar.</p>