I have a mysql query like this
$query = mysql_query("select contentid,groupid,title,subgroupid from site.ezc_contents where groupid='$arsiv'");
and i want to show every data which fits that query so i wrote a script like this but it didnt work
foreach ($query as $sorgu) {
$sonuc = mysql_fetch_row($query);
echo "<a href=\"http://www.sy.com/showcontents.php?topgroupid=8&subgroupid=$sonuc[3]&groupid=8\">$sonuc[2]</a>";
}
What should i do? Are there any mysql_ function for this?