Home » Structures » Structures_DataGrid » Bug #6779
sort bug
Details
| Submitted | 2006-02-14 13:31 UTC |
|---|---|
| From | chonny_78 at yahoo dot com |
| Assigned | wiesemann |
| Status | Closed |
| Package | Structures_DataGrid |
| PHP Version | 5.1.1 |
| OS | windows 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;
?>