The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/printthread.php(287) : eval()'d code 2 errorHandler->error
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



UserSpice
Fetch data from DB - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: Fetch data from DB (/showthread.php?tid=100)

Pages: 1 2 3 4


Fetch data from DB - jjmmrg - 03-18-2016

@mudmin , Thanks for your support . kindly check my updated question , comment on your answer and My working answer on Stackexchange and share your views mate . Thanks a ton . 8-)


Fetch data from DB - mudmin - 03-18-2016

Haha. I know @brian. I feel like such a slacker. It's been a rough couple of weeks not working on this. @jjmmrg Thanks for checking back...so many people ask questions and then I give an answer and never hear back. I'll go to SE and check out the response there.


Fetch data from DB - jjmmrg - 03-19-2016

@mudmin Happy looking your reply . i will keep you disturbed with my silly and simple basic questions in the future too Tongue


Fetch data from DB - mudmin - 03-19-2016

It's no bother at all. I enjoy it. I've missed working on this for the past few weeks.


Fetch data from DB - jjmmrg - 03-21-2016

@mudmin @brian

i have fallen into an issue
to be short ..i am developing an application over user spice ( i am copying us codes to my desired folder structure ) using a bootstrap admin panel template and changing the looks of us panel by copying us codes to that bootstrap template . now the issue is as follows

while entering any page after admin login say admin.php , admin_pages.php,admin_permission.php i am getting following errors. for your understanding i am pasting the code of that pointing line below every error

Notice: Undefined offset: 0 in C:\xampp\htdocs\slu\classes\DB.php on line 133
<pre>
Code:
public function first(){
        return $this->results()[0];
    }
</pre>


Notice: Trying to get property of non-object in C:\xampp\htdocs\xxx\users\helpers\us_helpers.php on line 330

Notice: Trying to get property of non-object in C:\xampp\htdocs\xxx\users\helpers\us_helpers.php on line 330

Notice: Trying to get property of non-object in C:\xampp\htdocs\xxx\users\helpers\us_helpers.php on line 330

Code:
$pageDetails = array( 'id' =>$results->id, 'page' => $results->page, 'private' =>$results->private);

Notice: Trying to get property of non-object in C:\xampp\htdocs\xxx\users\helpers\us_helpers.php on line 332
<pre>
Code:
$pageID = $results->id;
</pre>


and the following error only on admin_pages.php

Notice: Undefined variable: row in C:\xampp\htdocs\xxx\users\helpers\us_helpers.php on line 169

<pre>
Code:
$row[$fixed] = $fixed;
}
return $row;
}
</pre>


Warning: array_merge(): Argument #2 is not an array in C:\xampp\htdocs\xxx\admin_pages.php on line 17

Code:
$pages = array_merge($rootpages, $uspages); //feel free to add more folders

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\slu\admin_pages.php on line 26

<pre>
Code:
foreach ($pages as $page) {
    $page_exists = false;
    foreach ($dbpages as $k => $dbpage) {
        if ($dbpage->page === $page) {
            unset($dbpages[$k]);
            $page_exists = true;
            break;
        }
    }
    if (!$page_exists) {
        $creations[] = $page;
    }
}
</pre>


and one more thing is that in admin_pages no pages are being listed however i added all the includes you mentioned in documentation .

Kindly help me please





Fetch data from DB - mudmin - 03-21-2016

Just to be clear, did you change just css in the template or did you make changes to the various admin php files?


Fetch data from DB - jjmmrg - 03-22-2016

@mudmin , what i did was i kept admin.php file as it is and added my bootstrap styles in it . Yes few changes i made that was on styles . even i tried removing that style changes still same mate .


Fetch data from DB - jjmmrg - 03-22-2016

suppose if you are not clear and needed to have a look at the code we can have a session at teamviewer . breaking my heads on solving that .


Fetch data from DB - mudmin - 03-22-2016

We can do that. I'm in Alaska though, so my time zone might be pretty far from you. Where are you located?


Fetch data from DB - jjmmrg - 03-22-2016

@mudmin . India . no issues for me i can come on your favorable time . here time zone is GMT +5.30

Meanwhile i am inspecting line by line now .