Is your timestamp field called "timestamp" or "timestampz", and is your table called "news_home" or "news_homez"? Or were you just joking around?
In that example also you would need to do this:
$query = "SELECT subject, DATE_FORMAT(timestamp,'%d/%m/%Y') AS timestamp, News, links FROM news_homez ORDER BY timestampz DESC";
$results = mysql_query($query);
$returnS="";
while($line = mysql_fetch_array($results))
{
$returnS.= $line["subjectz"].",,".$line["timestamp"].",,".$line["Newsz"].",,".$line["linksz"].",,,";
}
Notice the AS timestamp in the SQL and the quotes around $line["timestamp"] in your while loop. Your field names were in the wrong place, they should come before the FROM. It's also generally better form to name the fields you are pulling out rather than using *. Also, double quotes invoke the PHP interpreter's interpolation scan for variables, so if you're not parsing any variables inside the string, it's more correct to do:
$arrayname['arraykey']
than
$arrayname["arraykey"]
Because it slows the script execution down trivially, but some. It's also (arguably) more legible.