I have this code that is supposed to echo some values from a MySQL database. The first 2 work fine. It echo’s properly, it works fine … until it gets to the title. It echos’ the <title> and </title> and "XXX |" but won’t display the value. Any Help? Thanks a million!
while($row = mysql_fetch_array( $info_array )) {
echo $row['id'];
echo "</br>";
echo $row['name'];
echo "</br>";
echo "<title>XXX | "$row['name']"</title>";
};
UPDATE:
Thanks to everyone that helped! Turns out that that code had no error. It was an error further up in the code.
Try concatenating your strings with
.s: