Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在这里找到了您的帖子Trying to push data to a JSON array。我也面临与 highcharts 甘特图相同的 JSON 双引号问题。
从那篇文章中不清楚你是如何解决它的。你能给我更多的细节和示例代码吗?
问候克里希纳
$str="[";
$result = $conn->query("SELECT name , value AS y FROM table_name");
while($row = $result->fetch_assoc()) {
$str.="{name: '".$row['name']."', y: ".$row['y']."},"; } $str.="]";