) .then(response => response.json()) .then(data => params.success( rowData: data.rows, rowCount: data.total ); ) .catch(error => params.fail());
try $pdo = new PDO("mysql:host=$host;dbname=$dbname;charset=utf8mb4", $user, $pass); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); catch(PDOException $e) die(json_encode(['error' => 'Database connection failed'])); aggrid php example updated
This is the "Updated" part. We use modern AG Grid syntax, enabling (like editing) using the Community version. rowCount: data.total )