当前位置: 动力学知识库 > 问答 > 编程问答 >

php - what is my error here as i cannot solve it

问题描述:

Just a bit of code i think i may be being a bit dumb on this one

Basically i want it to look at all of the records where the uniqreference is the same. get the matter for each one and run foreach statement replacing the matterID each time

$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)

}

Where have I gone wrong?

网友答案:

Missing $ from:

   matterfield = $matterID;
--^
分享给朋友:
您可能感兴趣的文章:
随机阅读: