Question: I am trying to pass parameter(s) to a web service call to flexigrid. 

I have setup the FlexiGrid to work just fine except when i try to pass one parameter to my web service call, but am seeing 500 Internal Server Error when trying to load the grid with that one parameter.

Ideally, when the user clicks submit it then calls a javascript function to invoke the ajax call to flexigrid, but that I where I am seeing the 500 Internal Server Error in firebug. 

It is saying the `lastName` parameter was missing from the web service call. This parameter is obtained from the last name search textbox. 

Any help is appreciated since I am a newbie to FlexiGrid. 

Here is my ajax call:

```
$("#userflexiGrid").flexigrid({
    url: 'FlexiGridService.asmx/GetDirectory',
    params: [{ name: 'lastName', value: 'doe'}],
    dataType: 'xml',
    colModel: [
            { display: 'Id', name: 'Employeeno', width: 30, sortable: true, align: 'left' },
            { display: 'Name', name: 'Employee', width: 130, sortable: true, align: 'left' },
            { display: 'Bureau', name: 'Bureau', width: 180, sortable: true, align: 'left' }
            ],
    searchitems: [
            { display: 'Name', name: 'Employee' },
            { display: 'Bureau', name: 'Bureau' },
            ],
    sortname: "Name",
    sortorder: "asc",
    usepager: true,
    title: 'Flexi Users',
    useRp: true,
    rp: 20,
    showTableToggleBtn: false,
    pagestat: 'Displaying: {from} to {to} of {total} matches.',
    //width: 700,
    singleSelect: true,
    onSubmit: addFormData,
    height: 260
});

```

Answer: 
Don't escape value.

```
$sql = "INSERT INTO `sc2broad_tesing1`.`Persons` (`re`) VALUES ('hello11')";

```
I would also consider using bound parameters, as seen in [mysqli::prepare](http://www.php.net/manual/en/mysqli.prepare.php), if [Mysqli](http://php.net/manual/en/book.mysqli.php) is an option.