Jump to content

ampersands in database content?


m00nz00mer

Recommended Posts

thanks, so if i have this code...

 

$result = mysql_query("SELECT one, two FROM numbers ORDER BY one");

 

while($row = mysql_fetch_array($result)) {

 

//Display the results with links to each category

echo '<div class="numberlinks"><div class="text">number: </div><a href="numbers.php?numberID='.$row['numberID'].'">'.$row['numerDesc'].'</a></div><br />';

 

 

how could i use htmlentities on that^?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.