$band = $_POST['band'];
echo (htmlentities(var_export($band)));
$band=addslashes(stripslashes($band));
mysql_connect($host,$user,$password)or die("err1");
mysql_select_db("$miodatab")or die("err2");
$numresults=mysql_query("select * from album where band='$band'");
$numrows=mysql_num_rows($numresults)or die ('Errore: '.mysql_error($conn));
if (empty($offset)) { $offset=0;}
$query = "select codice,descrizione,band from album where band='$band' order by id_p desc limit $offset,$limit";
$result = mysql_query ($query) or die ("query 2 failed");
la 122 e' $numrows....