php syntax check ','

0

I have a problem to concatenate a query with order by

...ORDER BY post_author DESC, post_date DESC;

This query works in mysql perfectly. But in php I do not know how to add the comma (,)

'orderA' is post_author 'orderB' is DESC 'orderC' is post_Date

 return $s['orderA']." ".$s['orderB']."  ".$s['orderC']." ".$s['orderB'];

how do I add the comma between ". $ s ['orderB']." and ". $ s ['orderC']."

thanks

    
asked by Texas 26.03.2018 в 05:43
source

1 answer

1

If I understood you correctly, I think the answer would be:

return $s['orderA']." ".$s['orderB'].", ".$s['orderC']." ".$s['orderB'].";";
    
answered by 26.03.2018 в 06:03