codehaven - php snippets - coding help
Generic filters
Exact matches only
  • JSON encode mysql result

    23rd July 2013

    MySql

    mysql codehaven category
    SEND SIDE (myfile.php)

    RECEIVE SIDE (process.php)

    This may also help….

    Version 2 Sending side

    Version 2 Receiving side

    (Without adding header(‘Content-type: application/json’);
    in previous sending page.
    You will need to add
    var data = $.parseJSON(data);
    to parse the json.

    Version 3 Sending side

    getmystuff.php

    and the button clicked page that sent the request

    Was this code snippet helpful?