Suppose you have the code:
echo "$value";
Everything within the quotes is printed out. However, now take the following code:
echo "<a href="$value">";
PHP gets confused where you have quotes within quotes. Therefore, if you want to print out a real quote inside an echo statement, you have to escape the " character with a backlash. Like this ...
echo "<a href=\"$value\">";
cscgal
The Queen of DaniWeb
19,430 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
Practice makes perfect.
echo "<a href=\"member.php?mid=$row[mid]\">$row[login]</a>";
I'm not exactly sure what $m[id] is ? Where are you fetching that $m[] array from?
cscgal
The Queen of DaniWeb
19,430 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230