admin

Forum Replies Created

Viewing 15 replies - 46 through 60 (of 635 total)
  • Author
    Replies
  • in reply to: JdGrid – Using PHP and MySQL database HELP Please. #92131
    admin
    Keymaster

    Dear pupian,

    I have try your php file. it works on add dan edit function but niether does delete function. could anyone help me please?

    <?

    include('config/connect.php'); //connections

    $id = $_POST['id']; //row id. this is the id of the selected row

    if ($operation == “del”)

    {

    $result = mysqli_query($link, “UPDATE table SET del = 2 WHERE id = '$id'”); //which syntax should I use?

    $result = mysqli_query($link, “DELETE FROM table WHERE id = '$id'”); //which syntax should I use?

    //both of them do not work

    }

    mysqli_close($link);

    ?>

    Regards,

    Candra

    in reply to: Ask: Integrated Search Toolbar->PHP-Mysql syntax #92130
    admin
    Keymaster

    To newperson,

    Thx for your explanation. But I still have problem on it.

    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:”Table Normal”;
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-parent:””;
    mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
    mso-para-margin:0cm;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:10.0pt;
    font-family:”Times New Roman”;}

    I can not find the strip function on php manual but I find stripslashes, is it similar?because if i use Strip function it causes error.

    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:”Table Normal”;
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-parent:””;
    mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
    mso-para-margin:0cm;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:10.0pt;
    font-family:”Times New Roman”;}

    if i run PHP-MYSQL example code with IE, the code do not work,could you help me find where is my error lies?

    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:”Table Normal”;
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-parent:””;
    mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
    mso-para-margin:0cm;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:10.0pt;
    font-family:”Times New Roman”;}

    <?php

    include 'config/connect.php';

    in reply to: TreeGrid in 3.6: FF vs IE #92109
    admin
    Keymaster

    Hi Tony

    Same error here but…:

    IE8 everything OK

    IE7 everything OK

    IE6: the “undefined” box remains, and there's a javascript error:

    Line10
    $.jgrid.formatter.integer is null or not an object

    Any ideas?..

    Luciano

    in reply to: Reqest simple edit records PHP Example #92108
    admin
    Keymaster

    To newperson,

    Thx for your example code

    regards,

    Candra

    in reply to: Toolip in header #92086
    admin
    Keymaster

    I did this :

    $('.ui-th-column').each(function() { $(this).attr('alt',$(this).text()).attr('title',$(this).text()); });

    in reply to: getGridParam(“colModel”) #92078
    admin
    Keymaster

    Hi Tony/Mryle,

    i was just going through this post. Well i want to dynamically add columns to my grid (the column names will come from a dropdown in my page,so i cannot hardcode the column names as it may change anytime Yell).Can i use yhis piece of code to add columns dynamically in my grid.

    Please reply.

    Thanks.

    Sourav(Vik)

    in reply to: Tree grid problem with the pager #92076
    admin
    Keymaster

    OK!

    Thank you 🙂

    in reply to: Reqest simple edit records PHP Example #92021
    admin
    Keymaster

    Dear all,

    Can anyone help me to

    in reply to: Session death with multiple grids #92017
    admin
    Keymaster

    Sorry for my delayed response on this (and thank you for your assistance!) –

    It appears that setting this up like so :

    jQuery(document).ready(function(){

    in reply to: Show input field in Cell Edit #92008
    admin
    Keymaster

    Updated the code, it should be correct according to the documentation.

    This code is based in part in the code that is on the examples page : http://www.trirand.com/blog/jqgrid/jqgrid.html , more precisely at “New in version 3.3 > Cell editing”.

    BUT, it's still not working !

    I have another question regarding the example in the above page : in the source code they include the script grid.celledit.js, do we still need to included in the last version, or it's already included in the jquery.jqGrid.min.js version 3.6.

    in reply to: passing parameters to jqGrid #92007
    admin
    Keymaster

    Why not refactor the grid into a partial and load it via ajax when the user fills out the form fields and clicks submit

    in reply to: Column content should fit to column width #92006
    admin
    Keymaster

    I had to remove a css declaration for the table cell, I think it was whitespace:nowrap or something 😉

    in reply to: Negative RowNumbers #92005
    admin
    Keymaster

    I have the same problem (version 3.6.2).

    In my case, when I scroll to the next set of records (true scrolling is on), it says: View -4 – 9 of 9.
    No error message so far.

    in reply to: jsonreader dot notation #92003
    admin
    Keymaster

    Sorry,

    I know how to set the jsonReader correctly but did not do so in my simplified example for forum use:

    in reply to: jsonreader dot notation #92001
    admin
    Keymaster

    I'm incorrect, the example above might work, but my data is a little different, as below.

    because “cart” iis the main

Viewing 15 replies - 46 through 60 (of 635 total)

Stay connected with us in your favorite flavor!