Código PHP:
$consultaRS= "SELECT * FROM bzn where actv=' SERVI";
$resultadoRS = mysql_query($consultaRS, $conexion)or die (mysql_error());
while($row= mysql_fetch_array($resultadoRS)) {
$solconf=$row['nusol'];
$actconf=$row['sonfg'];
$activ=$row['actv'];
$consultaR = "SELECT * FROM usado where detalle='$actconf'";
$resultadoR = mysql_query($consultaR, $conexion);
while($row= mysql_fetch_array($resultadoR)) {
$uso=$row['ciclo'];
if ($uso='2'){
$asign="UPDATE bzn SET costo='2' where nusol='$solconf'";
}
}
}