表格的第一列是个人数据,第二部分是关于员工的操作。我想在行中创建单元格。它没有条件重复所有员工的数据,但如果我把条件,它导致我这个问题。 此信息是tr。
的一部分USING PERIODIC COMMIT
LOAD CSV WITH HEADERS FROM
'file:///C:/Users/Zona5/Documents/Neo4j/check/import/cd1_5.csv' AS line1
MERGE (c:Company {companyNumber:line1.companyNumber})
WITH c, line1
MERGE (ca:CompanyAddress)
ON CREATE SET ca.county=line1.County
ON MATCH SET ca.county=line1.County
ON CREATE SET ca.country=line1.Country
ON MATCH SET ca.country=line1.Country
ON CREATE SET ca.postCode=line1.postCode
ON MATCH SET ca.postCode=line1.postCode
ON CREATE SET ca.poBox=line1.POBox
ON MATCH SET ca.poBox=line1.POBox
ON CREATE SET ca.careOf=line1.CareOf
ON MATCH SET ca.careOf=line1.CareOf
ON CREATE SET ca.addressLine1=line1.AddressLine1
ON MATCH SET ca.addressLine1=line1.AddressLine1
ON CREATE SET ca.addressLine2=line1.AddressLine2
ON MATCH SET ca.addressLine2=line1.AddressLine2
MERGE (c)-[:HAS_COMPANY_ADDRESS]->(ca)
这里是表格的图像 Table
答案 0 :(得分:0)
你错过了foreach循环中的结束</td>
。
它应该是:
echo "<td class='$fil->color'<h4> $fil->operation</h4> X</td>";
答案 1 :(得分:0)
我在回答我的问题:
<?php
if(!empty($obtOperation))
{
foreach($obtOperation as $fi)
{
$this->load->model('Reports_model');
$fil=$this->Reports_model->consult($fil->idBlock, $date1, $date2, $fila->cveEmp, $fi->idOperation);
if(!empty($fil))
{
foreach($fil as $fil)
{
if($fi->idOperation==$fil->idOperation)
{
echo "<td class='$fil->color'><h4> $fil->operation</h4> X</td>";
}#close else
}#close consult
}
else
{
echo "<td>N/A</td>";
}#Close if
}#Close foreach fi
}#Closeif de obtOperation
?>