pcbguy Posted January 8, 2008 Share Posted January 8, 2008 I have a form that puts a picture with year, make, model and description into a database. When I output it I want the year, make and model to appear bold. What is the best way to do this? Not sure if I should put the bold at the form that uploads, or have it bold the script that inserts the info into the database. I hope this makes sense. I can explain further if I need to. I tried to put the <b> in the output script and it didn't work. Thanks Here is the part of the output script: Echo $info['year']."<br>"; Echo $info['make']."<br>"; Echo $info['model']."<br>"; Echo $info['price']."<br>"; Echo $info['description']."<br>"; Link to comment https://forums.phpfreaks.com/topic/85088-solved-how-do-i-output-as-bold/ Share on other sites More sharing options...
Ken2k7 Posted January 8, 2008 Share Posted January 8, 2008 echo "<b>".$info['year']."</b>"; Link to comment https://forums.phpfreaks.com/topic/85088-solved-how-do-i-output-as-bold/#findComment-433968 Share on other sites More sharing options...
revraz Posted January 8, 2008 Share Posted January 8, 2008 echo "<b>".$info['year']."</b>"; Since Ken didnt use code tags. *Ah you caught it. Link to comment https://forums.phpfreaks.com/topic/85088-solved-how-do-i-output-as-bold/#findComment-433970 Share on other sites More sharing options...
Psycho Posted January 8, 2008 Share Posted January 8, 2008 <?php echo "<b>".$info['year']."</b><br>"; echo "<b>".$info['make']."</b><br>"; echo "<b>".$info['model']."</b><br>"; echo $info['price'] . "<br>"; echo $info['description'] . "<br>"; ?> Link to comment https://forums.phpfreaks.com/topic/85088-solved-how-do-i-output-as-bold/#findComment-433972 Share on other sites More sharing options...
pcbguy Posted January 8, 2008 Author Share Posted January 8, 2008 I had an extra " at the end between </b> and <br>. I am going to try it now without that. It worked. Thanks. Link to comment https://forums.phpfreaks.com/topic/85088-solved-how-do-i-output-as-bold/#findComment-433980 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.