Hi
I've posted a similar query before but had difficulty understanding the concept - can anyone lead me through this slowly?
I have a result set generated by the following code:
$sql2 = "SELECT * FROM table";
$conn = mysql_connect($db_host,$db_user,$db_pass);
$db = mysql_select_db($db_name,$conn);
$res2 = mysql_query($sql2);
while($myrow=mysql_fetch_array($res2)) {
print "$myrow[keyword], $myrow[sector], $myrow[location]<br>";
}
I get results like this:
, , Scotland
graphic design, , Scotland
graphic design, , Scotland
, Websites, Scotland
, , Scotland
How can I alter my code to show:
, , Scotland - 2
graphic design, , Scotland - 2
, Websites - 1
I'm fairly new to this game but I gotta get this done by end of today to meet a deadline! Please help :]