matttherat Posted August 29, 2010 Share Posted August 29, 2010 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 Quote Link to comment Share on other sites More sharing options...
PaulRyan Posted August 29, 2010 Share Posted August 29, 2010 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. Quote Link to comment Share on other sites More sharing options...
litebearer Posted August 29, 2010 Share Posted August 29, 2010 small typo... change this $row['answer']; to this $row['answer'] . Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.