PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Structures » Structures_DataGrid » Bug #6779

sort bug

Details

Submitted2006-02-14 13:31 UTC
Fromchonny_78 at yahoo dot com
Assignedwiesemann
StatusClosed
PackageStructures_DataGrid
PHP Version5.1.1
OSwindows small bussines 2003
Roadmaps(Not assigned)

Comments

[2006-02-14 13:31 UTC] chonny_78 at yahoo dot com

Description:
------------
sort bug with php 5.1.1. Sort dont working with new version of php. I tested this script on two mashines.

Test script:
---------------
<?php
require_once('Structures/DataGrid.php');

$mysqli = new mysqli('host','usr','pass','hr');
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
$rs = $mysqli->query('SELECT * FROM users u;');
while ($row = $rs->fetch_assoc()) {
$data[] = $row;
}
$dg = new Structures_DataGrid();
$dg->bind($data);
$dg->render();
$rs->close;
?>