PHP数组和JS交互问题
小弟初学PHP, 想用AJAX的方式填充数据
<br />$sql = "Select * from JW_FANCE where " . $condition;<br />$rs = mysql_query ( $sql, $conn );<br /><br />$index = 0;<br />while ( ($row = mysql_fetch_array ( $rs )) != false ) {<br /> $result[$index] = array (<br /> "PK" => $row ["PK"],<br /> "NAME" => $row ['NAME'],<br /> "SHORT_NAME" => $row ['SHORT_NAME'],<br /> "NODE" => $row ['NODE'],<br /> "PARENT_NODE" => $row ['PARENT_NODE'] <br /> );<br /> $index++;<br /> // 下面的方式怎么也不行, mysql_fetch_array不是返回的是数组吗?<br /> // $result[$index] =$row ;<br />}<br /><br />