Columns Rotation 1.7.25

Column header rotation.

HIDE CODE
<?php
    // Get an instance of the Xcrud class
	$xcrud = Xcrud::get_instance();	

    // Set the table to work with
	$xcrud->table("orderdetails");

    // Define which columns to display in the table
    $xcrud->columns("orderNumber,productCode,orderLineNumber,quantityOrdered,priceEach,total");

    // Define which fields are available for data entry or editing
    $xcrud->fields("orderNumber,productCode,orderLineNumber,quantityOrdered,priceEach,total");

    $xcrud->relation("officeCode","offices","officeCode","city");
    // Hide the 'extension' field when the 'officeCode' IN '7,3,4'(London, NYC, Paris)
  
    $xcrud->set_column_rotation("orderNumber,productCode,orderLineNumber,quantityOrdered,priceEach,total","20");

    $xcrud->readonly("total");
    $xcrud->label("total","Total");
    // Render the xcrud instance to display the table and form
    echo $xcrud->render();	
?>

Warning: mysqli_connect(): (HY000/1049): Unknown database 'xcrud1_7_v6' in /var/www/html/xcrud/demo/xcrud-lte/xCrud_1.7.26/xcrud/xcrud_db.php on line 50
xCRUDConnection error. Can not connect to database