I have this SQL statement:
$sql = "SELECT CONCAT_WS (" ",Firstname, Surname) AS FullName FROM Applicant WHERE AppID=10010";
This statement returns Error 500 on my page despite of that it is a completely correct statement. I run this query on Sequel Pro and it is returning exactly what I need.
I tried a simple query and its working fine:
$sql = "SELECT * FROM Cases";
I don't know why PHP is doing that. Maybe an extra pair of eyes can solve this.
wrong double quotes sequence
$sql = "SELECT CONCAT_WS (' ',Firstname, Surname) AS FullName
FROM Applicant WHERE AppID=10010";
you must a different quote char inside the query string
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.