dbalagosa

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • in reply to: Simple jqGrid doesnt work for me #100703
    dbalagosa
    Participant

    SORRY for wasting your time, but after 10 minutes I already solved it. WEIRD because I never understood that error had a great impact.

    below is my new grid.php code

    ===================================

    <?php

    $db = mysql_connect('localhost:3307', 'root', 'root')
    or die(“Connection Error: ” . mysql_error());

    mysql_select_db('ipiwms') or die(“Error conecting to db.”);

    $SQL = “SELECT no, order, serve, item FROM book”;
    $result = mysql_query( $SQL ) or die(“Couldn t execute query.”.mysql_error());

    $i=0;
    while($row = mysql_fetch_array($result,MYSQL_ASSOC)) {

    in reply to: Simple jqGrid doesnt work for me #100702
    dbalagosa
    Participant

    I used the below statement for my grid.php test

    localhost/jgrid/grid.php?page=1&rows=2&sidx=no&sord=asc

    seems ok with one error as shown below (also shown below is its result from json)

    ( ! ) SCREAM: Error suppression ignored for
    ( ! ) Warning: Creating default object from empty value in C:wampwwwjgridgrid.php on line 28
    Call Stack
    # Time Memory Function Location
    1 0.0008 146752 {main}( ) ..grid.php:0

    {“page”:”1″,”total”:1,”records”:”2″,”rows”:[{“id”:”1″,”cell”:[“1″,”ABC”,”DEF”,”GHI”]},{“id”:”2″,”cell”:[“2″,”JKL”,”MNO”,”PQR”]}]}

Viewing 2 replies - 1 through 2 (of 2 total)

Stay connected with us in your favorite flavor!