Jump to content

Html Characters converting


monkeybidz

Recommended Posts

I have this code that gives me the result I want, but when the result includes a "&" character it returns & instead. Can someone help here?

 

Here is the current code:

$getMainCats = mysql_query("SELECT id,name,issubcat FROM SAMPLE_categories WHERE parent=0 ".$adCatQuery." ORDER BY theorder ASC, name ASC");
$cnt = 0;
$catId = array();
$hasSubcat = array();

while ($row=mysql_fetch_array($getMainCats)) {
$catId[$cnt]=$row['id'];
$hasSubcat[$cnt]=$row['issubcat'];
$cnt++;
}

Link to comment
https://forums.phpfreaks.com/topic/156324-html-characters-converting/
Share on other sites

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.