El problema es que, cuando la busqueda ya esta realizada, me da un error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\WAMP\www\alumnes\pcerca.php on line 29
Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in C:\WAMP\www\alumnes\pcerca.php on line 37
y el codigo es este:
Código PHP:
<?php
while ($row=mysql_fetch_array($result)){
echo '<tr><td>'.$row["nom"].'</td>';
echo '<td>'.$row["llinatge1"].'</td>';
echo '<td>'.$row["llinatge2"].'</td>';
echo '<td>'.$row["cicle"].'</td>';
echo '<td>'.$row["curs"].'</td>';
echo '<td>'.$row["grup"].'</td></tr>';
}
mysql_free_result($result)
?>