Code Duplication    Length = 12-13 lines in 2 locations

index.php 1 location

@@ 30-42 (lines=13) @@
27
	
28
	$newPositionStatus;
29
	
30
	if ($result->num_rows > 0)
31
	{
32
		// output data of each row
33
		while($row = $result->fetch_assoc())
34
		{
35
			$accessToken = $row["access_token"];
36
			$newPositionStatus = $row['name'];
37
		}
38
	}
39
	else
40
	{
41
		echo "Error: 0 results";
42
	}
43
	
44
	
45
	//createAccount();

get-posts-ajax.php 1 location

@@ 31-42 (lines=12) @@
28
29
$newPositionStatus;
30
31
if ($result->num_rows > 0)
32
{
33
	// output data of each row
34
	while($row = $result->fetch_assoc())
35
	{
36
		$accessToken = $row["access_token"];
37
	}
38
}
39
else
40
{
41
	echo "Error: 0 results";
42
}
43
44
45
	if(isset($_GET['view']))