U lokalu odlicno radi, ali na site-u ni da cuje. Izbacuje mi sledecu greku:
Fatal error: Class mysql_data_table: Cannot inherit from undefined class data_table in h:\home\users\FA05-04-08-01_nj8hg7cmvbbtzwehez22\sea-agency.com\public_html\baza\mysql_data_table.class.php on line 18
Site se nalazi na www.loopia.co.yu.
Ne znam sta nisam sve procitao, ali ne ide.
Dali ima nekoga sa dovoljno volje da pomogne.
Evo coda u kome mislim da je problem. Ima tu jos dva file-a.
<?php
/*
Class: mysql_data_table
Author: Sven Zurnieden
Email: [email protected]
Description:
This class is extending data_table class which generates a html-table from a dataset array.
For info on datatable look in data_table.class.php.
Just set the query and execute it.
Use then the methods of data_table class to change layout from table.
HAVE FUN NOW, hope this class is useful
*/
require_once("data_table.class.php");
class mysql_data_table extends data_table{
var $query = false; //the query
function set_query($query){
//sets the query
$this->query = $query;
}
function execute_query($db_host, $db_user, $db_pass, $db){
//executes the query
$connect = mysql_connect($db_host, $db_user, $db_pass);
mysql_select_db($db);
$query = mysql_query($this->query, $connect);
$i = 0;
while($result = mysql_fetch_array($query, MYSQL_ASSOC)){
$data[$i] = $result;
$i++;
}
$this->set_data($data);
}
}
?>