title: creating a classified - stuck
body: <p>I am a beginner in web designing (php, mysql). I am creating a classified similar to Craigslist but not as complex. </p>
  
  <p>I managed to get the user ad input as well as pics inserted into mysql databases and everything is working perfectly.</p>
  
  <p>I also managed to fetch the data when a user searches a specific category like cars</p>
  
  <pre><code>    $query="SELECT city, title, price FROM md_post WHERE category='cars'";
  
  $result= mysql_query($query) or die (mysql_error());
  
  while($row = mysql_fetch_array($result)){
  echo "&lt;a href='XXXX.php'&gt;". $row['title']. " - ". $row['price']." - ".$row['city']."&lt;/a&gt;";
  echo "&lt;br /&gt;&lt;br /&gt;";
  </code></pre>
  
  <p>OUTPUT IS:
  Charlotte - NISSAN - $9000
  Charlotte - BMW - $11000</p>
  
  <p>what i want now is, when a user clicks on a title ad, the user is redirected to the ad page itself. ( just the like what Craigslist or any classified would do)</p>
  
  <p>how can I do this? I know it is a general questions and i am not expecting anybody to provide a whole code but i need hints and ideas please.</p>
  
  <p>I will be very grateful. Thanks</p>