I'm new to PHP and am trying to get two select statements to both run on one page. The results of both selects should be put into different arrays.
So far the code is:
$dbconn = mysql_connect("$server", "$db_user", "$db_pass");
mysql_select_db("$database", $dbconn);
$result = mysql_query("SELECT bodyContent, bodyTitle FROM tblBody WHERE bodyID=1 LIMIT 1");
$resultarray = mysql_fetch_array($result)
$newsresult = mysql_query("SELECT newsID, newsTitle FROM tblNews ORDER BY newsID DESC LIMIT 4");
$newsresultarray = mysql_fetch_array($newsresult)
This code doesn't seem to work for both selects. Any ideas would be good.
Secondly, the array from the second select statement needs to have the results looped through, adding html tags whilst outputting. I'm having no luck with that either so any ideas would be good again!
TIA, Tom