An action-generated array returns to the interface
Title, I have a form on the interface, the completion of the submission, after the action of the related processing, and finally produced a two-dimensional array, my front desk has a jquery datetable plug-in, I want to receive the next action generated by the array, the code how to write, give a simple example
$sql = "Select A.id,a.sname,a.dname,b.path,a.ctime,venderid,vendername,email from Upload_log a joins File_out_log B on A.I D=b.id join Vender C on B.outname=c.venderid where A.dname= ' ". $fileinfo [0][savename]." ' ";
$res 4=mysql_query ($sql) or Die ($sql. "Not sucess");
while ($row = mysql_fetch_array ($res 4,mysql_assoc)) {
$arr 6[]= $row;
}
Var_dump ($arr 6);
$arr 6 is the resulting array, how did JS in front of me get this array???
------Solution--------------------
Echo Json_encode ($arr 6);