$sql="select * from prueba where nombre='$_POST[nombre]'";$res=mysql_query($sql) or die("output=error&msg=".mysql_error());