Thanks, I wrote based on what you said...Two more questions here:
1) On line 1 below, it gives unexpected T string error. Probably a syntax or quotation mistake but dont know how to resolve. You wrote it this way for some reason I believe, but from one of my other php files, I have the syntax as $query=mysql_query("select * from newsai ORDER BY id DESC LIMIT 1"); for instance...The quotation below, based on what you wrote is different, but I am not sure how to convert...
2) Based on what you said about having another column as 'table', I also wanted to have another column as 'folder', in the output...Did I do it correctly below?
3) In the last line, in place of aaii I want to insert that $row[folder] and in place of ai I want to insert $row[table] column name. How to do that with correct syntax and quotation?
$query=mysql_query (SELECT id, title, date, par1, 'ai' AS folder 'ai' AS table FROM newsai)
UNION(SELECT id, title, date, par1, 'domestic' AS folder, 'dom' AS table FROM newsdom)
UNION(SELECT id, title, date, par1, 'events' AS folder, 'eve' AS table FROM newseve)
UNION(SELECT id, title, date, par1, 'industrial' AS folder, 'ind' AS table FROM newsind)
ORDER BY date DESC LIMIT 3;
while ($row = mysql_fetch_array($query)) {
$b=$row['id'];
$c=date("F j", strtotime($row['date']));
echo"<span id=newsdate1>".$c."</span>"."<span class='newstitle1'>" . "<br/>". $row['title'] . "</span>".
"<span id=newstext1>" . $row['par1'] ."<a href='aaii/display_ai_whole.php?id=$b'".">"."(more...)"."</a>" ; }