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
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';
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
To newperson,
Thx for your example code
regards,
Candra
I did this :
$('.ui-th-column').each(function() { $(this).attr('alt',$(this).text()).attr('title',$(this).text()); });
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
).Can i use yhis piece of code to add columns dynamically in my grid.
Please reply.
Thanks.
Sourav(Vik)
OK!
Thank you 🙂
Dear all,
Can anyone help me to
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(){
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.
Why not refactor the grid into a partial and load it via ajax when the user fills out the form fields and clicks submit
I had to remove a css declaration for the table cell, I think it was whitespace:nowrap or something 😉
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.
Sorry,
I know how to set the jsonReader correctly but did not do so in my simplified example for forum use:
I'm incorrect, the example above might work, but my data is a little different, as below.
because “cart” iis the main
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top