');
}
$books='';
$books2='';
$query="SELECT * FROM literature_books_c WHERE artist_id=$id";
$result=mysqli_query($conn,$query)or die(mysqli_error($conn));
if(mysqli_num_rows($result)>0){
while($row=mysqli_fetch_array($result)){
$row['illustrated']=='1'?$ill='Yes': $ill='No';
$books.='
'.$row['year'].'
'.$row['author'].'
'.$row['title'].'
'.$row['pages'].'
'.$ill.'
'.$row['color'].'
';
$books2.='
Year '.$row['year'].'
Author '.$row['author'].'
Pages '.$row['pages'].'
Illus. '.$ill.'
Color '.$row['color'].'
';
}
}
$mags='';
$mags2='';
$query="SELECT * FROM literature_mags_c WHERE artist_id=$id";
$result=mysqli_query($conn,$query)or die(mysqli_error($conn));
if(mysqli_num_rows($result)>0){
while($row=mysqli_fetch_array($result)){
$row['illustrated']=='1'?$ill='Yes': $ill='No';
$mags.='
'.$row['year'].'
'.$row['month'].'
'.$row['author'].'
'.$row['title'].'
'.$row['pages'].'
'.$ill.'
'.$row['color'].'
';
$mags2.='
Year '.$row['year'].'
Month '.$row['month'].'
Author '.$row['author'].'
Pages '.$row['pages'].'
Illus. '.$ill.'
Color '.$row['color'].'
';
}
}
$other='';
$other2='';
$query="SELECT * FROM literature_other_c WHERE artist_id=$id";
$result=mysqli_query($conn,$query)or die(mysqli_error($conn));
if(mysqli_num_rows($result)>0){
while($row=mysqli_fetch_array($result)){
$row['illustrated']=='1'?$ill='Yes': $ill='No';
$other.='
'.$row['year'].'
'.$row['month'].'
'.$row['author'].'
'.$row['title'].'
'.$row['pages'].'
'.$ill.'
'.$row['color'].'
';
$other2.='
Year '.$row['year'].'
Month '.$row['month'].'
Author '.$row['author'].'
Pages '.$row['pages'].'
Illus. '.$ill.'
Color '.$row['color'].'
';
}
}
// now go through the calculator/artwork tables
$id>=1000000?$table='calculator_c':$table='calculator';
$query="SELECT DISTINCT(medium) FROM $table WHERE artist_name='$id'";
$result=mysqli_query($conn,$query)or die(mysqli_error($conn));
$mediums='';
if(mysqli_num_rows($result)>0){
while($row=mysqli_fetch_array($result)){
$mediums.=$row['medium'].' * ';
}
$mediums=rtrim($mediums,' * ');
}
$query="SELECT DISTINCT(category) FROM $table WHERE artist_name='$id'";
$result=mysqli_query($conn,$query)or die(mysqli_error($conn));
$works='';
if(mysqli_num_rows($result)>0){
while($row=mysqli_fetch_array($result)){
$works.=$row['category'].' * ';
}
$works=rtrim($works,' * ');
}
$id>=1000000?$tableb='artists_c':$tableb='artists';
$query="SELECT MIN(a.created_year) as low_val FROM $table a JOIN $tableb b on a.artist_name=b.artist_id WHERE a.artist_name=$id AND a.created_year!='' AND a.created_year!='0' AND a.created_year IS NOT NULL AND a.created_year>(b.artist_birth_year+10)";
$result=mysqli_query($conn,$query)or die(mysqli_error($conn));
$years_active='';
if(mysqli_num_rows($result)>0){
while($row=mysqli_fetch_array($result)){
$low_val=$row['low_val'];
}
}
$this_year=date("Y");
$query="SELECT max(a.created_year) as high_val FROM $table a JOIN $tableb b on a.artist_name=b.artist_id WHERE a.artist_name=$id AND a.created_year!='' AND a.created_year!='0' AND a.created_year IS NOT NULL AND a.created_year<= b.artist_death_year AND a.created_year<=$this_year";
$result=mysqli_query($conn,$query)or die(mysqli_error($conn));
if(mysqli_num_rows($result)>0){
while($row=mysqli_fetch_array($result)){
$high_val=$row['high_val'];
}
}
$high_val>date("Y")?$high_val='':$high_val;
$years_active="$low_val - $high_val";
// now populate pictorial section
$id>1000000?$table='artists_c':$table='artists';
$query="SELECT photo_url1,photo_url1b,photo_url1c,photo_url1d,photo_url2,photo_url2b,photo_url2c,photo_url2d,photo_url3,photo_url3b,photo_url3c,photo_url3d,photo_url4,photo_url4b,photo_url4c,photo_url4d,photo_url4e,photo_url4f,photo_url4g,photo_url4h from $table WHERE artist_id=$id";
$result=mysqli_query($conn,$query)or die(mysqli_error($conn));
$pictorial='';
while($row=mysqli_fetch_array($result)){
$row['photo_url1']!=''?$pictorial.="
';
}
}
$price_count_query="SELECT count(*) as count FROM calculator_c a JOIN users b on a.user_id=b.id WHERE a.artist_name='$id'";
$size_count_query=$price_count_query;
$style_count_query=$price_count_query;
$category_count_query=$price_count_query;
$color_count_query=$price_count_query;
?>
TO VIEW ANALYTICS
or
"Plus" or "Premium" Account Required To View Analytic Tools
Welcome to Artephant
Interested in adding a citation? Lorem Ipsum lorem Ipsum
( - )
';
}else{
echo '
';
}
?>
if($isUserLoggedIn==1){
?>
Average CAGR:
- AHP:
CAGR: Become a Member to see available artist "Compound Annual Growth Rate" (CAGR)AHP: Become a Member to see available artist "Average Hold Period" (AHP)
FEATURED WORKS
()
Overview:
Nationality:Speciality:Style Best Known for:Additional Styles:Museum Collections:Important Private Collections:Membership(s):Where Exhibited:Where Educated:Awards / Prizes Won:Works:Mediums:
>
Years of Productivity:
= 365){
$years=floor($hold_period/365);
}
if($hold_period >= 365 && ($hold_period%365)>30){
$months=floor(($hold_period%365)/30);
}
if($hold_period <= 365 && ($hold_period%365)>30){
$months=floor(($hold_period%365)/30);
}
if(($hold_period%30)>14){
$months += '1';
}
if($hold_period < 9){
$months = 0;
$years=0;
}
$years>0?$hold_period=$years.'Y':$hold_period=$hold_period;
$months>0&&$years>0?$hold_period.='/'.$months.'M':$hold_period=$hold_period;
$months>0&&$years<1?$hold_period =''.$months.'M':$hold_period=$hold_period;
if($months==0 && $years==0){
$hold_period = 'NA';
}
return $hold_period;
}
/*
function getPriceCount($price_var,$price_count_query){
include('/home/artephant/config.php');
$conn=mysqli_connect($hostname,$user,$pass,$dbase)or die(mysqli_connect_error());
switch($price_var){
case 'ALL':
$price_count_query.="";
//die($price_count_query);
break;
case '0':
$price_count_query.=" AND pricing='price_request'";
break;
case "1-2000":
$price_count_query.=" AND sort_price <= 2000 AND sort_price>0";
break;
case "2000-5000":
$price_count_query.=" AND ((sort_price >= 2000 AND sort_price <= 5000) OR price_range='2,000-5,000')";
break;
case "5000-10000":
$price_count_query.=" AND ((sort_price >= 5000 AND sort_price <= 10000) OR price_range='5,000-10,000')";
break;
case "10000-15000":
$price_count_query.=" AND ((sort_price >= 10000 AND sort_price <= 15000) OR price_range='10,000-15,000')";
break;
case "15000-20000":
$price_count_query.=" AND ((sort_price >= 15000 AND sort_price <= 20000) OR price_range='15,000-20,000')";
break;
case "1-19999":
$price_count_query.=" AND ((sort_price <20000) OR price_range='Below-20,000')";
break;
case "20000-30000":
$price_count_query.=" AND ((sort_price >= 20000 AND sort_price <= 30000) OR price_range='20,000-30,000')";
break;
case "1-29999":
$price_count_query.=" AND ((sort_price <30000) OR price_range='Below-30,000')";
break;
case "20000-40000":
$price_count_query.=" AND ((sort_price >= 20000 AND sort_price <= 40000) OR price_range='20,000-40,000')";
break;
case "1-39999":
$price_count_query.=" AND ((sort_price <40000) OR price_range='Below-40,000')";
break;
case "30000-40000":
$price_count_query.=" AND ((sort_price >= 30000 AND sort_price <= 40000) OR price_range='30,000-40,000')";
break;
case "30000-50000":
$price_count_query.=" AND ((sort_price >= 30000 AND sort_price <= 50000) OR price_range='30,000-50,000')";
break;
case "50001-100000000000":
$price_count_query.=" AND ((sort_price >50000) OR price_range='Above-50,000')";
break;
case "75001-100000000000":
$price_count_query.=" AND ((sort_price >75000) OR price_range='Above-75,000')";
break;
case "100001-100000000000":
$price_count_query.=" AND ((sort_price >100000) OR price_range='Above-100,000')";
break;
case "250001-100000000000":
$price_count_query.=" AND ((sort_price >250000) OR price_range='Above-250,000')";
break;
case "500001-100000000000":
$price_count_query.=" AND ((sort_price >500000) OR price_range='Above-500,000')";
break;
case "1000001-100000000000":
$price_count_query.=" AND ((sort_price > 1000000) OR price_range='Above-1,000,000')";
break;
case "SOLD":
$price_count_query.=" AND pricing='mark_sold'";
break;
case "DISPLAY":
$price_count_query.=" AND pricing='is_display'";
break;
}
$result=mysqli_query($conn,$price_count_query)or die(mysqli_error($conn));
while($row=mysqli_fetch_array($result)){
$thisCount=$row['count'];
}
mysqli_close($conn);
echo $thisCount;
}
*/
function getPriceCount($price_var,$price_count_query){
include('/home/artephant/config.php');
$conn=mysqli_connect($hostname,$user,$pass,$dbase)or die(mysqli_connect_error());
switch($price_var){
case 'ALL':
$price_count_query.=" AND b.frozen!='1'";
//die($price_count_query);
break;
case '0':
$price_count_query.=" AND a.pricing='price_request' AND b.frozen!='1'";
break;
case "1-2000":
$price_count_query.=" AND a.sort_price <= 2000 AND a.sort_price>0 AND b.frozen!='1'";
break;
case "2000-5000":
$price_count_query.=" AND ((a.sort_price >= 2000 AND a.sort_price <= 5000) OR a.price_range='2,000-5,000') AND b.frozen!='1'";
break;
case "5000-10000":
$price_count_query.=" AND ((a.sort_price >= 5000 AND a.sort_price <= 10000) OR a.price_range='5,000-10,000') AND b.frozen!='1'";
break;
case "10000-15000":
$price_count_query.=" AND ((a.sort_price >= 10000 AND a.sort_price <= 15000) OR a.price_range='10,000-15,000') AND b.frozen!='1'";
break;
case "15000-20000":
$price_count_query.=" AND ((a.sort_price >= 15000 AND a.sort_price <= 20000) OR a.price_range='15,000-20,000') AND b.frozen!='1'";
break;
case "1-19999":
$price_count_query.=" AND ((a.sort_price <20000 AND a.sort_price>0) OR a.price_range='Below-20,000') AND b.frozen!='1'";
break;
case "20000-30000":
$price_count_query.=" AND ((a.sort_price >= 20000 AND a.sort_price <= 30000) OR a.price_range='20,000-30,000') AND b.frozen!='1'";
break;
case "1-29999":
$price_count_query.=" AND ((a.sort_price <30000 AND a.sort_price>0) OR a.price_range='Below-30,000') AND b.frozen!='1'";
break;
case "20000-40000":
$price_count_query.=" AND ((a.sort_price >= 20000 AND a.sort_price <= 40000) OR a.price_range='20,000-40,000') AND b.frozen!='1'";
break;
case "1-39999":
$price_count_query.=" AND ((a.sort_price < 40000 AND a.sort_price>0) OR a.price_range='Below-40,000') AND b.frozen!='1'";
break;
case "30000-40000":
$price_count_query.=" AND ((a.sort_price >= 30000 AND a.sort_price <= 40000) OR a.price_range='30,000-40,000') AND b.frozen!='1'";
break;
case "30000-50000":
$price_count_query.=" AND ((a.sort_price >= 30000 AND a.sort_price <= 50000) OR a.price_range='30,000-50,000') AND b.frozen!='1'";
break;
case "50001-100000000000":
$price_count_query.=" AND ((a.sort_price >50000) OR a.price_range='Above-50,000') AND b.frozen!='1'";
break;
case "75001-100000000000":
$price_count_query.=" AND ((a.sort_price >75000) OR a.price_range='Above-75,000') AND b.frozen!='1'";
break;
case "100001-100000000000":
$price_count_query.=" AND ((a.sort_price >100000) OR a.price_range='Above-100,000') AND b.frozen!='1'";
break;
case "250001-100000000000":
$price_count_query.=" AND ((a.sort_price >250000) OR a.price_range='Above-250,000') AND b.frozen!='1'";
break;
case "500001-100000000000":
$price_count_query.=" AND ((a.sort_price >500000) OR a.price_range='Above-500,000') AND b.frozen!='1'";
break;
case "1000001-100000000000":
$price_count_query.=" AND ((a.sort_price > 1000000) OR a.price_range='Above-1,000,000') AND b.frozen!='1'";
break;
case "SOLD":
$price_count_query.=" AND a.pricing='mark_sold' AND b.frozen!='1'";
break;
case "DISPLAY":
$price_count_query.=" AND a.pricing='is_display' AND b.frozen!='1'";
break;
}
$result=mysqli_query($conn,$price_count_query)or die(mysqli_error($conn));
while($row=mysqli_fetch_array($result)){
$thisCount=$row['count'];
}
mysqli_close($conn);
echo $thisCount;
}
function getSizeCount($size,$size_count_query){
include('/home/artephant/config.php');
$conn=mysqli_connect($hostname,$user,$pass,$dbase)or die(mysqli_connect_error());
switch($size){
case '0':
$size_count_query.=" AND b.frozen!='1'";
break;
case '1':
$size_count_query.=" AND ((a.depth=0 AND a.height>0 AND a.width>0 AND a.height*a.width <=450) OR (a.depth>0 AND a.height>0 AND a.width>0 AND a.height*a.width*a.depth <=450)) AND b.frozen!='1'";
break;
case '2':
$size_count_query.=" AND ((a.depth=0 AND a.height>0 AND a.width>0 AND a.height*a.width BETWEEN 451 AND 1200) OR (a.depth>0 AND a.height>0 AND a.width>0 AND a.height*a.width*a.depth BETWEEN 451 AND 1200)) AND b.frozen!='1'";
break;
case '3':
$size_count_query.=" AND ((a.depth=0 AND a.height>0 AND a.width>0 AND a.height*a.width BETWEEN 1201 AND 4608) OR (a.depth>0 AND a.height>0 AND a.width>0 AND a.height*a.width*a.depth BETWEEN 1201 AND 4608)) AND b.frozen!='1'";
break;
case '4':
$size_count_query.=" AND ((a.depth=0 AND a.height>0 AND a.width>0 AND a.height*a.width > 4608) OR (a.depth>0 AND a.height>0 AND a.width>0 AND a.height*a.width*a.depth >4608)) AND b.frozen!='1'";
break;
}
$result=mysqli_query($conn,$size_count_query)or die(mysqli_error($conn));
while($row=mysqli_fetch_array($result)){
$thisCount=$row['count'];
}
mysqli_close($conn);
echo $thisCount;
}
function getStyleCount($style,$style_count_query){
include('/home/artephant/config.php');
$conn=mysqli_connect($hostname,$user,$pass,$dbase)or die(mysqli_connect_error());
$style=mysqli_real_escape_string($conn,$style);
if($style!='ALL'){
$style_count_query.=" AND a.style='$style' AND b.frozen!='1'";
}else{
$style_count_query.=" AND b.frozen!='1'";
}
$result=mysqli_query($conn,$style_count_query)or die(mysqli_error($conn));
while($row=mysqli_fetch_array($result)){
$thisCount=$row['count'];
}
mysqli_close($conn);
echo $thisCount;
}
function getCategoryCount($category,$category_count_query){
include('/home/artephant/config.php');
$conn=mysqli_connect($hostname,$user,$pass,$dbase)or die(mysqli_connect_error());
if($category!='ALL'){
$category_count_query.=" AND a.category='$category' AND b.frozen!='1'";
}else{
$category_count_query.=" AND b.frozen!='1'";
}
$result=mysqli_query($conn,$category_count_query)or die(mysqli_error($conn));
while($row=mysqli_fetch_array($result)){
$thisCount=$row['count'];
}
mysqli_close($conn);
echo $thisCount;
}
function getColorCount($color,$color_count_query){
include('/home/artephant/config.php');
$conn=mysqli_connect($hostname,$user,$pass,$dbase)or die(mysqli_connect_error());
$color=mysqli_real_escape_string($conn,$color);
$color_count_query.=" AND a.colors='$color' AND b.frozen!='1'";
$result=mysqli_query($conn,$color_count_query)or die(mysqli_error($conn));
while($row=mysqli_fetch_array($result)){
$thisCount=$row['count'];
}
mysqli_close($conn);
echo $thisCount;
}
function getRadioCount($search,$styles,$color,$price,$style,$size,$category,$gallery_id){
global $id;
$artist=$id;
include('/home/artephant/config.php');
$conn=mysqli_connect($hostname,$user,$pass,$dbase)or die(mysqli_connect_error());
if($search=='0'||$search==''){
$query="SELECT count(*) as count FROM calculator_c a JOIN users b on a.user_id=b.id WHERE a.artist_name='$artist' AND b.gallery_type!='6' AND a.hide!='1' AND a.gallery_or_index='g' AND b.frozen!='1'";
}elseif($search=='1'||$search=='6'){
$query="SELECT count(*) as count FROM calculator_c a JOIN users b on a.user_id=b.id WHERE a.artist_name='$artist' AND b.gallery_type='6' AND a.hide!='1' AND a.gallery_or_index='g' AND b.frozen!='1'";
}elseif($search=='4'){
$query="SELECT count(*) as count FROM calculator_c a JOIN users b on a.user_id=b.id WHERE a.artist_name='$artist' AND b.gallery_type='1' AND a.hide!='1' AND a.gallery_or_index='g' AND b.frozen!='1'";
}elseif($search=='5'){
$query="SELECT count(*) as count FROM calculator_c a JOIN users b on a.user_id=b.id WHERE a.artist_name='$artist' AND b.gallery_type='2' AND a.hide!='1' AND a.gallery_or_index='g' AND b.frozen!='1'";
}elseif($search=='7'){
$query="SELECT count(*) as count FROM calculator_c a JOIN users b on a.user_id=b.id WHERE a.artist_name='$artist' AND b.gallery_type='4' AND a.hide!='1' AND a.gallery_or_index='g' AND b.frozen!='1'";
}elseif($search=='8'){
$query="SELECT count(*) as count FROM calculator_c a JOIN users b on a.user_id=b.id WHERE a.artist_name='$artist' AND b.gallery_type='5' AND a.hide!='1' AND a.gallery_or_index='g' AND b.frozen!='1'";
}elseif($search=='9'){
$query="SELECT count(*) as count FROM calculator_c a JOIN users b on a.user_id=b.id WHERE a.artist_name='$artist' AND b.gallery_type='8' AND a.hide!='1' AND a.gallery_or_index='g' AND b.frozen!='1'";
}elseif($search=='10'){
$query="SELECT count(*) as count FROM calculator_c a JOIN users b on a.user_id=b.id WHERE a.artist_name='$artist' AND b.gallery_type='10' AND a.hide!='1' AND a.gallery_or_index='g' AND b.frozen!='1'";
}elseif($search=='11'){
$query="SELECT count(*) as count FROM calculator_c a JOIN users b on a.user_id=b.id WHERE a.artist_name='$artist' AND b.gallery_type='9' AND a.hide!='1' AND a.gallery_or_index='g' AND b.frozen!='1'";
}elseif($search=='12'){
$query="SELECT count(*) as count FROM calculator_c a JOIN users b on a.user_id=b.id WHERE a.artist_name='$artist' AND b.gallery_type='7' AND a.hide!='1' AND a.gallery_or_index='g' AND b.frozen!='1'";
}else{
$query="SELECT count(*) as count FROM calculator_c a JOIN users b on a.user_id=b.id WHERE a.artist_name='$artist' AND a.user_id='$gallery_id' AND a.hide!='1' AND a.gallery_or_index='g' AND b.frozen!='1'";
}
if($color!=''){
$query.=" AND a.colors='$color' AND b.frozen!='1'";
}
if($price!=''){
switch($price){
case '0':
$query.=" AND a.pricing='price_request' AND b.frozen!='1'";
break;
case "1-2000":
$query.=" AND a.sort_price <= 2000 AND a.sort_price >0 AND b.frozen!='1'";
break;
case "2000-5000":
$query.=" AND a.sort_price >= 2000 AND a.sort_price <= 5000 AND b.frozen!='1'";
break;
case "5000-10000":
$query.=" AND a.sort_price >= 5000 AND a.sort_price <= 10000 AND b.frozen!='1'";
break;
case "10000-15000":
$query.=" AND a.sort_price >= 10000 AND a.sort_price <= 15000 AND b.frozen!='1'";
break;
case "15000-20000":
$query.=" AND a.sort_price >= 15000 AND a.sort_price <= 20000 AND b.frozen!='1'";
break;
case "1-19999":
$query.=" AND a.sort_price <20000 AND a.sort_price>0 AND b.frozen!='1'";
break;
case "20000-30000":
$query.=" AND a.sort_price >= 20000 AND a.sort_price <= 30000 AND b.frozen!='1'";
break;
case "1-29999":
$query.=" AND a.sort_price <30000 AND a.sort_price>0 AND b.frozen!='1'";
break;
case "20000-40000":
$query.=" AND a.sort_price >=20000 AND a.sort_price <= 40000 AND b.frozen!='1'";
break;
case "1-39999":
$query.=" AND a.sort_price <40000 AND a.sort_price>0 AND b.frozen!='1'";
break;
case "30000-40000":
$query.=" AND a.sort_price >= 30000 AND a.sort_price <= 40000 AND b.frozen!='1'";
break;
case "30000-50000":
$query.=" AND a.sort_price >= 30000 AND a.sort_price <= 50000 AND b.frozen!='1'";
break;
case "50001-100000000000":
$query.=" AND a.sort_price >50000 AND b.frozen!='1'";
break;
case "75001-100000000000":
$query.=" AND a.sort_price >75000 AND b.frozen!='1'";
break;
case "100001-100000000000":
$query.=" AND a.sort_price >100000 AND b.frozen!='1'";
break;
case "250001-100000000000":
$query.=" AND a.sort_price >250000 AND b.frozen!='1'";
break;
case "500001-100000000000":
$query.=" AND a.sort_price >500000 AND b.frozen!='1'";
break;
case "1000001-100000000000":
$query.=" AND a.sort_price > 1000000 AND b.frozen!='1'";
break;
case "20":
$query.=" AND a.pricing='mark_sold' AND b.frozen!='1'";
break;
case "21":
$query.=" AND a.pricing='is_display' AND b.frozen!='1'";
break;
}
}
if($style!=''){
$query.=" AND a.movement='$style' AND b.frozen!='1'";
}
if($size!=''){
switch($size){
case '0':
$size_count_query.=" AND b.frozen!='1'";
break;
case '1':
$query.=" AND ((a.depth=0 AND a.height>0 AND a.width>0 AND a.height*a.width <=450) OR (a.depth>0 AND a.height>0 AND a.width>0 AND a.height*a.width*a.depth <=450)) AND b.frozen!='1'";
break;
case '2':
$query.=" AND ((a.depth=0 AND a.height>0 AND a.width>0 AND a.height*a.width BETWEEN 451 AND 1200) OR (a.depth>0 AND a.height>0 AND a.width>0 AND a.height*a.width*a.depth BETWEEN 451 AND 1200)) AND b.frozen!='1'";
break;
case '3':
$query.=" AND ((a.depth=0 AND a.height>0 AND a.width>0 AND a.height*a.width BETWEEN 1201 AND 4608) OR (a.depth>0 AND a.height>0 AND a.width>0 AND a.height*a.width*a.depth BETWEEN 1201 AND 4608)) AND b.frozen!='1'";
break;
case '4':
$query.=" AND ((a.depth=0 AND a.height>0 AND a.width>0 AND a.height*a.width > 4608) OR (a.depth>0 AND a.height>0 AND a.width>0 AND a.height*a.width*a.depth >4608)) AND b.frozen!='1'";
break;
}
}
if($category!=''){
$query.=" AND a.category='$category' AND b.frozen!='1'";
}
$result=mysqli_query($conn,$query)or die(mysqli_error($conn));
while($row=mysqli_fetch_array($result)){
$thisCount=$row['count'];
}
mysqli_close($conn);
return $thisCount;
}
?>