hi i know this is very basic,

but i'm currently freakin out because for some reason my codes don't work.

here is my codes below,
$query = "SELECT firstname, lastname FROM member WHERE firstname='$fname' AND lastname='$lname'";
$result = mysql_query($query) or die("Problem with the query: $query on line " . __LINE__ . '<br>' . mysql_error());
		$row = mysql_fetch_array($result);
		$fname2 = $row['firstname'];
		$lname2 = $row['lastname'];
By the way i want to check the full name since the first and last name is in
separate column.

Is there something wrong with my codes?

Can you show me your style please.

Thank you.