

<?php
$busq = $_POST['busq_pro'];
include_once("conectar.php");
$link = Conectarse();
$con_pro = mysql_query("SELECT * FROM proyecto WHERE titulo LIKE '%$busq%'", $link);
$nfilas = mysql_num_rows($con_pro);
if ($nfilas > 0){
for ($i=0; $i<$nfilas; $i++){
$fila = mysql_fetch_array($con_pro); ?>
<tr>
<td width="200"><form name="modif" id="modif" action="modif_pro.php" method="post">
<?php $v=$fila['cod_pro'];?>
<input type="submit" name="n_pro" value=" <?php $v ?>" />
-----------------------------------------------------------------------------------------------------
y a continuacion donde lo debe recibir:
-------------------------------------------------------------------------------------------------------
<?php session_start();
if (isset($_SESSION['usuario'])) {
include_once("conectar.php");
$link = Conectarse();
$cod_pro = $_POST['n_pro'];
$fila = mysql_query("SELECT * FROM proyecto WHERE cod_pro = '$cod_pro'", $link);
?>
---------------------------------------------------------------------------------------------------
agradeceria una pronta respuesta!!!
