$loginFoundUser=mysql_fetch_array($LoginRS);先问一下...$LoginRS你是怎么定义它的?你没告诉怎么知道啊,最好把源码发上来
select * from user where id=$id and pwd=$pwd