I have made a search page. Result of search displays the name of users along with their experience. if a user clicks on any name then a new browser page is opened and the details of that user are dipalyed. So now there are 2 pages open: 1 is the result page and the other is details page. If the user again clicks on other user name then that users details are shown on the same page on which it was showing previously. Now there should be 3 pages opened: 1 of result page, 1 of 1st users details and 1 of 2nd users details but there are only 2 pages opened. The details of 1st user is lost. How can it be solved. This is the following code that i have used for it.
[code=php]
$resultnum = mysql_num_rows( $data);
if($resultnum>0 ) { // Echos out matches if anything was found
while($info=mys ql_fetch_array( $data)){
?>
<tr>
<td width="139" height="26" valign="top"><p align="center"> <a href="searchacc ount.php?id=<? echo $info['FullName']; ?>" target=\"_blank \"><? echo $info['FullName']; ?></a></p></td>
<td width="149" valign="top"><p align="center"> <? echo $info['YearsExp']; ?></p></td>
</tr>
<p> </p>
<?php
}// end of while
}//end of if
[/code]
What is the problem in above code.
[code=php]
$resultnum = mysql_num_rows( $data);
if($resultnum>0 ) { // Echos out matches if anything was found
while($info=mys ql_fetch_array( $data)){
?>
<tr>
<td width="139" height="26" valign="top"><p align="center"> <a href="searchacc ount.php?id=<? echo $info['FullName']; ?>" target=\"_blank \"><? echo $info['FullName']; ?></a></p></td>
<td width="149" valign="top"><p align="center"> <? echo $info['YearsExp']; ?></p></td>
</tr>
<p> </p>
<?php
}// end of while
}//end of if
[/code]
What is the problem in above code.
Comment