This is a piece of code that worked before I moved, the page is broken where this code is located, if I remove it the page works but I need the code:) The page works in all other aspects that I can think of.
I used PHP 5.6 at my old provider and thats why I moved, the new provider still supports 5.6, so the PHP version is the same.
Code: Select all
$query = "SELECT class FROM classes WHERE id = '" . $this->edit->id . "'";
$db->setQuery($query);
$db->query();
$klassarray = $db->loadResultArray();
$SF_array = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
$SIF_array = array(242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 256, 278, 280, 284, 285, 302, 303, 304, 305, 306, 307);
$SS_array = array(11, 12, 240, 241, 255, 257, 279);
$SH_array = array(286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301);
$O_array = array(308);
$L_array = array(29, 30, 31, 32, 283);
$A_array = array(17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28);
$R_array = array(13, 14, 15, 16);
$B_array = array(258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277);
Can the error be HOW the code is read by the server? In that case, what differs? How do I fix it?
The logic tells me that it HAS to be server config, right?
Thanks in advance!