hi, i would like to add a style to my variables comming from the data base for exemple let's say that i have a table users; in the table i have contact_first_name contact_last_name, adress, phone, and i want to show the full name of the client in red how can i do it with setvalue or with another function or what?
Please any help is appreciated.
thanks.
$sql="select * from users";
$req=mysql_query($sql);
$row=mysql_fetch_array($req);
foreach($row as $data)
{
$name=$data['contact_first_name'].' '.$data['contact_first_name'];
$adress=$data['adress'];
$phone=$data['phone'];
}
$template->setValue('name', $name);
$template->setValue('adress', $adress);
$template->setValue('phone', $phone);
in the code above how can i set : $template->setValue('name', $name) to show the name in red, and is it possible to add icones before the content of the variables, i mean add icone of a phone before the phone number of the contact, and another one before the name and the adress as well.Please any help is appreciated.
thanks.