ciao a tutti

come posso modificare questo codice per ottenere un ricerca incrociata?
adesso cerca solo in base a quello che gli passo con "nickGestore" mentre io vorrei aggiungere anche la password


codice:
<?php
echo $row_cerca['nickGestore'];
echo '

';
require_once('../Connections/connessione.php');

$colname_Recordset1 = "1";
if (isset($_GET['cerca'])) {
  $colname_Recordset1 = (get_magic_quotes_gpc()) ? $_GET['cerca'] : addslashes($_GET['cerca']);
}
mysql_select_db($database_connessione, $connessione);
$query_Recordset1 = sprintf("SELECT * FROM gestore WHERE nickGestore = '%s'", $colname_Recordset1);
$Recordset1 = mysql_query($query_Recordset1, $connessione) or die(mysql_error());
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
$x = 0;
echo "&totale=", $totalRows_Recordset1;
while($row_Recordset1 = mysql_fetch_assoc($Recordset1)) {
    $nickGestore = $row_Recordset1['nickGestore'];
    $passGestore = $row_Recordset1['passGestore'];
    $x++;
    echo "&nickGestore$x=$nickGestore&passGestore$x=$passGestore";
}
mysql_free_result($Recordset1);
?>
Grazie mille