Check documentation for the latest version of dhtmlxSuite constructor DHTMLX Docs

constructor

Creates a SpreadSheet object that allows you to apply available API methods to the specified spreadsheet.

Parameters

  • $res - (string) the connection variable. Note, connection is established based on the configuration defined in the config.php file
  • $sheetId - (string) the id of a spreadsheet to manage
  • $prefix - (string) the database prefix. Can be taken from the config.php file

Example

<?php
 
require_once("api.php");
require_once("config.php");
 
$res = new PDO("mysql:dbname=$db_name;host=$db_host", $db_user, $db_pass);
 
$sh = new SpreadSheet($res, "1", $db_prefix);
?>
Back to top