Aşağıdaki kodu için, ikinci linke (http://www...com/sandbox/comments/index.php?submission='.$row["title"].'), bir GET değişkeni olarak, $ row ["submissionid"] geçmek istiyorum. Ben bu çalıştı ve boş bir sonuç üretmek için aşağıdaki kod tüm neden oldu. Ben istiyorum bir yolu var mı?
Teşekkür peşin,
John
$sqlStr = "SELECT
s.loginid
,s.title
,s.url
,s.displayurl
,l.username
,COUNT(c.commentid) countComments
FROM
submission s
INNER
JOIN
login l
ON
s.loginid = l.loginid
LEFT OUTER
JOIN
comment c
ON
s.submissionid = c.submissionid
GROUP
BY
s.submissionid
ORDER
BY
s.datesubmitted DESC
LIMIT
10";
$result = mysql_query($sqlStr);
$arr = array();
echo "<table class=\"samplesrec\">";
while ($row = mysql_fetch_array($result)) {
echo '<tr>';
echo '<td class="sitename1"><a href="http://www.'.$row["url"].'">'.$row["title"].'</a></td>';
echo '</tr>';
echo '<tr>';
echo '<td class="sitename2"><a href="http://www...com/sandbox/members/index.php?profile='.$row["username"].'">'.$row["username"].'</a><a href="http://www...com/sandbox/comments/index.php?submission='.$row["title"].'">'.$row["countComments"].'</a></td>';
echo '</tr>';
}
echo "</table>";