Jump to content

echo var in bold or strong


matttherat

Recommended Posts

hi. i want to echo part of my code in bold or strong. can anyone help please?

 

echo "<table border='0'>

<tr>

<th></th>

</tr>";

 

$row = mysql_fetch_array($result) or die(mysql_error());

echo "<tr>";

echo "<td>"  . $row['question']. "  ". $row['answer']; "</td>";

echo "<tr>";

 

echo "</table>";

 

 

I want to bold the $row question part. Hope someone knows. thanks

Link to comment
https://forums.phpfreaks.com/topic/211998-echo-var-in-bold-or-strong/
Share on other sites

Use the following, hopefully it will suit your needs :)

 

echo "<table border='0'>

<tr>

<th></th>

</tr>";

 

$row = mysql_fetch_array($result) or die(mysql_error());

echo "<tr>";

echo "<td><strong>" . $row['question']. "</strong>  ". $row['answer']; "</td>";

echo "<tr>";

 

echo "</table>";

 

Thanks, Paul.

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.