-1

只是一些代码,我想我可能对此有点愚蠢

基本上我希望它查看 uniqreference 相同的所有记录。获取每一个的问题并运行 foreach 语句,每次都替换 matterID

$compliance = mysql_query("SELECT matterid from Links where portalreference='".$uniqreference ."'");

while ($row = mysql_fetch_assoc($compliance)) {
    $matterID = $row['matterid'];

    foreach($row as $matterID2) {
       matterfield = $matterID;
       (mysql query here)
    }

我哪里出错了?

4

1 回答 1

3

缺少$

   matterfield = $matterID;
--^
于 2012-07-03T12:24:44.367 回答