PHP / SQL - PHP不会输出sql查询

时间:2017-05-17 02:01:42

标签: javascript php html sql

你能帮帮我吗?只是试图填写一些文本,因为stackoverflow想要写更多文本,因为它是所有代码

2 个答案:

答案 0 :(得分:0)

此字段的别名

onDropSuccess(event: any, droppedOn: string) {
  let highestId = this.canvas.slice()
    .sort((a, b) => a.id-b.id)[this.canvas.length-1].id;

  this.canvas.push(
    new Row(highestId+1, [new Widget('Lorem ipsumrci viverra auctor')])
  );
}

然后使用单引号而不是双重

SELECT f.roundID as froundID

和更大的问题是SQL QUERY

$row['froundID']

不会返回任何东西,因为后面的队伍和家庭队员应该是一样的......

要纠正应该是OR,它可以是家庭团队或远程团队

FROM fixtures AS f
INNER JOIN team AS h
  ON f.homeTeam = h.teamID
  AND f.awayTeam = h.teamID

根据更新的要求,您需要创建3个查询
在哪里
1 - 获得回合
2 - 获得团队
3 - 到达场地

答案 1 :(得分:0)

您的查询如下:

select a.column, b.columnz from table a inner join table b on a.key = b.key

所以当你得到如下结果时:

column   columnz
xxxxx    yyyyyy

所以你的PHP

<?php echo $row["f.roundID"]?>"><?php echo $row["f.roundID"]?>

应该是这样的:

<?php echo $row["roundID"]?>"><?php echo $row["roundID"]?>