i got problem getting the record for example the value of the field $m_category = Kids and Teens.
When i retrive the Category and pass in the url i got only the Value of "Kids" instead of "Kids and Teens".
I use the function htmlspecialchars but it doesnt work;
heres the error part of the codes --> m_cat=<? echo $m_category?> <-- the retrieving of records $m_category is not complete
m_cat = "Kids and Teens" not m_cat = "Kids";
<a href=add_main_cat.php?m_edit=<? echo $m_id?>&&m_cat=<? echo $m_category?>>Edit</a>
heres the complete code!!!!!
$q=mysql_query("Select * from main_category order by m_id");
while($row=mysql_fetch_array($q)) {
extract($row);
?>
<tr>
<td ><? echo $m_id." ".$m_category;?></td>
<td><div align="right"><a href=add_main_cat.php?m_edit=<? echo $m_id?>>Add Sub Category </a> - <a href=add_main_cat.php?m_edit=<? echo $m_id?>&&m_cat=<? echo $m_category?>>Edit</a> - <a href=add_main_cat.php?m_delete=<? echo $m_id?>>Delete</a></div></td>
</tr>
<?
}
?>
thanks,
Milo