Subject: | I want to try the class, but first... |
Summary: | Package rating comment |
Messages: | 3 |
Author: | Gergely Grossmann |
Date: | 2010-08-26 15:06:58 |
Update: | 2010-09-16 07:43:45 |
|
|
|
Gergely Grossmann rated this package as follows:
Utility: | Insufficient |
Consistency: | Sufficient |
Examples: | Bad |
|
 Gergely Grossmann - 2010-08-26 15:06:58
I want to try the class, but first of all the script wants DataTable.php, but it contains DataTable without extension. I fixed this, and after that want to try the query, but from the 2 example not worked anyone.
 Waqas Ahmed - 2010-08-26 18:04:30 - In reply to message 1 from Gergely Grossmann
Sorry!
Yes you are right. There were problem in the file. It was changed during my last edit and its extension got deleted! Thanks for mentioning this. I have fixed this stuff and there is also minor changes. Hope that it will have some impact
Thanks again
 Gergely Grossmann - 2010-09-16 07:43:45 - In reply to message 2 from Waqas Ahmed
I installed the new version.
"Fatal error: Uncaught exception 'Exception' with message 'Column (E_ID) does not exist' in /var/www/improvokal.hu/webroot/DataTable.php:142 Stack trace: #0 /var/www/improvokal.hu/webroot/hirek.php(11): DataTable->__get('E_ID') #1 {main} thrown in /var/www/improvokal.hu/webroot/DataTable.php on line 142"
The hirek.php contains this:
<?php
include_once("MySQL.php");
require_once ('config.php');
$connection = new MySQL($host, $database, $user, $password);
$dataTable = $connection->Execute('SELECT * FROM news');
$content = null;
while ($dataTable->MoveNext()) {
//$content .= $dt->Field(0) . "<br>";
$content .= "$dataTable->E_ID<br>";
}
?>
What am i do wrong?
|