title: php a link parameter
body: <p>I have doubt on how to get two values in a link and pass that to the edit function. Help pls.......</p>
  
  <p>Following is the code,</p>
  
  <p>I want both manufacturedate and product code to be passed to the get[edi],</p>
  
  <pre><code>&lt;td &gt; &lt;a name="edit" href="productwarrantymaster.php?edi[]=&lt;? echo $record['ProductCode']; echo $record['ManufactureDate'];?&gt;"&gt;Edit&lt;/a&gt;&lt;/td&gt;
  </code></pre>
  
  <p>Following is the code for edit function,</p>
  
  <pre><code>if(!empty($_GET['edi']))
  {
  $prmaster =$_GET['edi'];
  $Manufactu =$_GET['edi'];
  
  
  $result=mysql_query("SELECT * FROM productwarranty where ProductCode ='".$prmaster."' and ManufactureDate ='".$Manufactu."'");
  $myrow1 = mysql_num_rows($result);//mysql_fetch_array($retval);
  
          if($myrow1==0)  
          {
              ?&gt;
              &lt;script type="text/javascript"&gt;
              alert("No Data Found!!");
              &lt;/script&gt;
              &lt;?
          }
          else
          {
             $myrow = mysql_fetch_array($result);
  
             $ProductCode = $myrow['ProductCode'];
             $WarrantyPeriod = $myrow['WarrantyPeriod'];
             $ProRataPeriod = $myrow['ProRataPeriod'];
             $ManufactureDate = $myrow['ManufactureDate'];
             $ApplicableFormDate = $myrow['ApplicableFormDate'];
          }
          $prmaster = NULL;
  }
  </code></pre>