The following code in php
$result = mysql_query("SELECT name, concat('<div style="color:Red">',designation,'</div>') as designation FROM test.table_test;") or die(mysql_error());
if (mysql_num_rows($result) > 0) {
while ($row = mysql_fetch_array($result)) {
$product = array();
$product["name"] = $row["name"];
$product["designation"] = $row["designation"];
$var_designation = $row["designation"];
}
echo "CON COLOR= ".$var_designation;
If I run it in a browser, it results in this:
If I send it to a textView it literally shows this:
<div style="color:Red">',designation,'</div>
Modify the MySQL query line by this:
SELECT name, CONCAT('<font color="#FF0000">',designation,'</font>') as designation FROM test.table_test limit 1;
But it gives me the same result ...
Is it possible what I try to do?