I'm assuming this is another noob mistake, I've got a form that for some reason has two copies of it, in the sense that there should be the one but there's an exact copy beneath. I've taken the PHP out to check that's what it is and it reverts back to just the one.
Thanks for any help, it's appreciated!
<?php
$con = mysql_connect( 'localhost', 'user', 'pass' );
if( !$con ) {
die( 'Could not connect: ' . mysql_error() );
} else {
user = $_SESSION['username'];
mysql_select_db( 'db_name', $con );
$result = mysql_query( "SELECT * FROM users WHERE username='$user'" );
while( $row = mysql_fetch_array( $result ) ) {
?>
<form> </form>
<?php
}
}
?>