jiajieit Chevereto Member Feb 27, 2015 #1 How to display images have been uploaded by the number of servers in the home page. I want to show the dashboard above picture number (guest status) in the home page, and ask what function to achieve?
How to display images have been uploaded by the number of servers in the home page. I want to show the dashboard above picture number (guest status) in the home page, and ask what function to achieve?
Rodolfo 👑 Chevereto Godlike Chevereto Staff Administrator Feb 27, 2015 #2 PHP: CHV\DB::queryFetchSingle('SELECT COUNT(*) AS total from ' . CHV\DB::getTable('images'));
jiajieit Chevereto Member Feb 27, 2015 #3 Rodolfo said: PHP: CHV\DB::queryFetchSingle('SELECT COUNT(*) AS total from ' . CHV\DB::getTable('images')); Click to expand... thank
Rodolfo said: PHP: CHV\DB::queryFetchSingle('SELECT COUNT(*) AS total from ' . CHV\DB::getTable('images')); Click to expand... thank
jiajieit Chevereto Member Mar 1, 2015 #4 Rodolfo said: PHP: CHV\DB::queryFetchSingle('SELECT COUNT(*) AS total from ' . CHV\DB::getTable('images')); Click to expand... Hello, Rodolfo, After using this code can not display images correctly quantity,As shown below; footer.php Last edited: Mar 1, 2015
Rodolfo said: PHP: CHV\DB::queryFetchSingle('SELECT COUNT(*) AS total from ' . CHV\DB::getTable('images')); Click to expand... Hello, Rodolfo, After using this code can not display images correctly quantity,As shown below; footer.php
Rodolfo 👑 Chevereto Godlike Chevereto Staff Administrator Mar 1, 2015 #5 You are missing the echo. PHP: echo CHV\DB::queryFetchSingle('SELECT COUNT(*) AS total from ' . CHV\DB::getTable('images'));
You are missing the echo. PHP: echo CHV\DB::queryFetchSingle('SELECT COUNT(*) AS total from ' . CHV\DB::getTable('images'));
jiajieit Chevereto Member Mar 2, 2015 #6 Rodolfo said: You are missing the echo. PHP: echo CHV\DB::queryFetchSingle('SELECT COUNT(*) AS total from ' . CHV\DB::getTable('images')); Click to expand... Hello Rodolfo, I added the echo display "Array".
Rodolfo said: You are missing the echo. PHP: echo CHV\DB::queryFetchSingle('SELECT COUNT(*) AS total from ' . CHV\DB::getTable('images')); Click to expand... Hello Rodolfo, I added the echo display "Array".
Rodolfo 👑 Chevereto Godlike Chevereto Staff Administrator Mar 2, 2015 #7 PHP: echo CHV\DB::queryFetchSingle('SELECT COUNT(*) AS total from ' . CHV\DB::getTable('images'))['total'];
PHP: echo CHV\DB::queryFetchSingle('SELECT COUNT(*) AS total from ' . CHV\DB::getTable('images'))['total'];
jiajieit Chevereto Member Mar 3, 2015 #8 Rodolfo said: PHP: echo CHV\DB::queryFetchSingle('SELECT COUNT(*) AS total from ' . CHV\DB::getTable('images'))['total']; Click to expand... thanks
Rodolfo said: PHP: echo CHV\DB::queryFetchSingle('SELECT COUNT(*) AS total from ' . CHV\DB::getTable('images'))['total']; Click to expand... thanks