An array of action occurrences returns to the interface

Source: Internet
Author: User
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);
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.