Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Remove Duplicate objects from JSON

//change is
     while( $row = mysqli_fetch_array( $result ))
    { 
		$response[] = $row;
	}
//with this
while($row = mysqli_fetch_array($result))
{
    $response['id'] = $row['id'];
    $response['name'] = $row['name'];
    $response['password'] = $row['password'];
    $response['email'] = $row['email'];
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Remove #Duplicate #objects #JSON
ADD COMMENT
Topic
Name
4+1 =