Codice PHP:
$sql=("select * from ".$tabella." where user='".$user."' and password='".$password."'")or die ("Query fallita: ".mysql_error());
$rs_login = mysql_query($sql_login);
echo $rs_login;
Quel mysql_error() messo lì non serve a niente dato che stai semplicemente concatenando delle stringhe.
Prova così:
Codice PHP:
$sql="select * from ".$tabella." where user='".$user."' and password='".$password."'";
$rs_login = mysql_query($sql_login) or die ("Query fallita: ".mysql_error());
echo $rs_login;
P.S.
Poi scusa......cos'è quel $sql_login?!?!?!
Crei la stringa $sql e poi invece utilizzi $sql_login ?!?!