I'm getting non-breaking space entity at the end of my PHP file any idea why?

Philip

New member
Here's my source code:
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
<?php
$con = mysql_connect("", "username", "password");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}

mysql_select_db("databasename", $con);

$select_user =
mysql_query('SELECT * FROM tablename');

echo "<info>";
while($row = mysql_fetch_array($select_user))
{
echo "<name>" . $row['user'] . " </name><name>" . $row['name'] . "</name>";
}
echo "</info>";
?>

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Okay, and here's my output. Notice at the very end of the code the non-breaking space entity:

<info><name>powerphillg5 </name><name>Felipe</name><name>tkrain1 </name><name></name></info>\&nbsp\;


What's up with that? anyone have a clue why that happens?

(I added the backslashes because it wouldn't show up as an entity)
 
Back
Top