PHP Classes

not working

Recommend this page to a friend!

      PHP Html5 Table  >  All threads  >  not working  >  (Un) Subscribe thread alerts  
Subject:not working
Summary:errors
Messages:3
Author:synthetron
Date:2020-06-18 12:36:06
 

  1. not working   Reply   Report abuse  
Picture of synthetron synthetron - 2020-06-18 12:36:06
Parse error: syntax error, unexpected '[' in C:\wamp\www\php\tablehtml5-2020-06-17\index.php on line 6

include is missing in index.php

  2. Re: not working   Reply   Report abuse  
Picture of adam berger adam berger - 2020-06-18 13:30:54 - In reply to message 1 from synthetron
Hi,
You probably need to change the PHP version to 5.6 or higher PHP 7.3 This is how the table to PHP 5.2 should look
$ tBodyRows = array (
"0" => array ('1', '2', '3', '4'),
"1" => array ('2', '2', '3', '4'),
"2" => array ('3', '2', '3', '4'),
"3" => array ('4', '2', '3', '4')
);

  3. Re: not working   Reply   Report abuse  
Picture of synthetron synthetron - 2020-06-18 15:00:26 - In reply to message 2 from adam berger
you have to replace this too

private $tRows=array();