我正在设计一个从数据库中检索的表,当用户将鼠标悬停在表中的值时,它应该从数据库中收集相应的数据并在工具提示中显示它。当我选择查询表中的所有值时,工具提示不起作用。但是,当我只查询数据库中的1个特定项目时,它就像一个魅力。我不知道这有什么不对。请帮帮我,
代码,
$fabSql = "SELECT FABRICATION.*,
MASTER_DRAWING.WEIGHT
FROM FABRICATION, MASTER_DRAWING
WHERE FABRICATION.HEAD_MARK = MASTER_DRAWING.HEAD_MARK";
$fabParse = oci_parse($conn, $fabSql);
oci_execute($fabParse);
while (($row = oci_fetch_array($fabParse, OCI_BOTH)) != false)
{
$totalFabPercentage = (($row['MARKING']*$markingPercentage)+($row['CUTTING']*$cuttingPercentage)+($row['ASSEMBLY']*$assemblyPercentage)+
($row['WELDING']*$weldingPercentage)+($row['DRILLING']*$drillingPercentage)+($row['FINISHING']*$finishingPercentage));
echo '<tr>';
echo '<td>'.$row['HEAD_MARK'].'</td>';
echo '<td>'.$row['ID'].'</td>';
if ($row['MARKING'] == 1){
echo '<td align="center" title="SIGNED BY : '.$row['MARKING_FAB_SIGN'].' on '.$row['MARKING_FAB_DATE'].'" class="jquery-tooltipped"><span class="glyphicon glyphicon-ok greenyellow"></span>';
} elseif ($row['MARKING'] == 0) {
echo '<td align="center"><span class="glyphicon glyphicon-refresh grey"></span>';
} else {
echo '<td align="center"><span class="glyphicon glyphicon-flag red"></span>';
}
if ($row['CUTTING'] == 1){
echo '<td align="center"><span class="glyphicon glyphicon-ok greenyellow"></span>';
} elseif ($row['CUTTING'] == 0) {
echo '<td align="center"><span class="glyphicon glyphicon-refresh grey"></span>';
} else {
echo '<td align="center"><span class="glyphicon glyphicon-flag red"></span>';
}
}
}
但是当我这样查询时,工具提示有效,
$fabSql = "SELECT FABRICATION.*,
MASTER_DRAWING.WEIGHT
FROM FABRICATION, MASTER_DRAWING
WHERE FABRICATION.HEAD_MARK = MASTER_DRAWING.HEAD_MARK
AND FABRICATION.HEAD_MARK = 'SMS-MH-BM1'";