thank you. I hadn’t noticed this. Now there is another problem.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
<?php require_once 'jq-config.php'; require_once "php/PHPSuito/jqGrid.php"; require_once "php/PHPSuito/DBdrivers/jqGridMysqli.php"; $conn = new mysqli('localhost', 'root', '', 'operasyontakip'); $conn->query("SET NAMES utf8"); $islem_kodu = jqGridUtils::GetParam("IS_EMRI_KODUM"); $islem_ismi = jqGridUtils::GetParam("IS_EMRI_ISMIM"); $grid = new jqGridRender($conn); $grid->SelectCommand = "SELECT * FROM is_emri_yapilacak_operasyonlar WHERE YOP_IS_EMRI_KODU= ? AND YOP_IS_EMRI_ISMI= ? "; $grid->dataType = 'json'; $grid->setColModel(null,array($islem_kodu,$islem_ismi)); $grid->queryGrid(); $grid->setUrl('sayfa3subgrid.php'); $grid->setColProperty("YOP_ID", array("label"=>"NO", "width"=>70)); $grid->setColProperty("YOP_IS_EMRI_KODU", array("label"=>"İŞ EMRİ KODU")); $grid->setColProperty("YOP_IS_EMRI_ISMI", array("label"=>"İŞ EMRİ İSMİ")); $grid->setColProperty("YOP_OP_NO", array("label"=>"OPERASYON ADI")); $grid->setColProperty("YOP_ISLEM_MERKEZ_NO", array("label"=>"OPERASYON İŞLEMİ")); $grid->setSelect('YOP_OP_NO', "SELECT OP_NO, OP_ADI FROM operasyonlar"); $grid->setSelect('YOP_ISLEM_MERKEZ_NO', "SELECT OP_ISLEM_MERKEZ_NO, OP_ISLEM_MERKEZ_OP_ADI FROM operasyon_islem_merkezi"); $grid->setGridOptions(array("caption"=>"YAPILACAK OPERASYONLAR","rowNum"=>20,"hoverrows"=>true,"width"=>600,"height"=>200)); $grid->renderGrid("#detail",null, true, null, array($islem_kodu,$islem_ismi), true,true); ?> |
If I use the query with two parameters
|
1 2 |
$grid->SelectCommand = "SELECT * FROM is_emri_yapilacak_operasyonlar WHERE YOP_IS_EMRI_KODU= ? AND YOP_IS_EMRI_ISMI= ? "; |
alert box, an error message appears, but the results are correct, the detail grid is empty.
|
1 2 |
Could not execute query!!!{"records":2,"page":1,"total":1,"rows":[{"YOP_ID":1,"YOP_IS_EMRI_KODU":"MO0000549 0001","YOP_IS_EMRI_ISMI":"MO2021-549 evrak nolu üretim talebi ile üretilen 2305030100001585","YOP_OP_NO":"012","YOP_ISLEM_MERKEZ_NO":"02"},{"YOP_ID":2,"YOP_IS_EMRI_KODU":"MO0000549 0001","YOP_IS_EMRI_ISMI":"MO2021-549 evrak nolu üretim talebi ile üretilen 2305030100001585","YOP_OP_NO":"012","YOP_ISLEM_MERKEZ_NO":"03"}]} |
If I use the query with a single parameter, there is no problem.
|
1 2 |
$grid->SelectCommand = "SELECT * FROM is_emri_yapilacak_operasyonlar WHERE YOP_IS_EMRI_KODU= ? "; |
my queries and parameters are correct, the result is returned but not written into the grid. writes on the screen in the form of error.
Why can’t I use a two parameter query? Is there a bug?
The Guriddo Suito PHP script on the site has expired. I downloaded it but the writes script expired. Is it possible for you to update?
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top