这是php的原因!php里点是连接符!  不然你后面的写一起算什么?
"select    *    from abc_table where user_name = ' "$user_name" ' ";  没有这种写法!
其实就是连接字符串!单引号是因为$user_name变量代表一个字符串!