can i use a simple api for my android app?

hello there, after a long time i’m created an admin panel for my android application. i’m not updated my app yet. before updating, i need to know about some information before updating my application. i have webview news app. and i’m created a secure admin panel. but i’m using 3 php files for json decode. i have 3 fragments for fetch them from sql database. below i’m provided a single php file that i’m using for output the api:

<?php
header( 'Content-Type: application/json; charset=utf-8' );
// Initialize variable for database credentials
$dbhost = 'localhost';
$dbuser = 'usrname';
$dbpass = 'test';
$dbname = 'dtbsname';

//Create database connection
  $dblink = new mysqli($dbhost, $dbuser, $dbpass, $dbname);

//Check connection was successful
  if ($dblink->connect_errno) {
     printf("Failed to connect to database");
     exit();
  }

//Fetch 3 rows from actor table
  $result = $dblink->query("SELECT * FROM tbl_one ORDER BY cid");
                
//Initialize array variable
  $dbdata = array();

//Fetch into associative array
  while ( $row = $result->fetch_assoc())  {
	$dbdata[]=$row;
  }

//Print array in JSON format
 echo json_encode($dbdata);
 
?>

i’m usin 3 different php file for api. is this violate on codecanyon? and it can be a reason for rejected?

thanks.