Padgoi Posted September 10, 2007 Share Posted September 10, 2007 So I have this small PHP bit and I want a red and bold font on the line that says "This post has been deleted by:" but not sure how to get it in there. Here's the bit: $post = 'This post has been deleted by:'. $usr; $ta = array ( 'post' => $post, ); $db_string = $this->ipsclass->DB->compile_db_update_string( $ta ); $this->ipsclass->DB->simple_exec_query( array( 'update' => 'posts', 'set' => $db_string, 'where' => 'pid'.$pid ) ); Any help would be appreciated. Link to comment https://forums.phpfreaks.com/topic/68688-solved-help-adding-font-effects-to-a-very-small-php-bit/ Share on other sites More sharing options...
MadTechie Posted September 10, 2007 Share Posted September 10, 2007 at a guess change $post = 'This post has been deleted by:'. $usr; to $post = '<font color="#FF0000"><strong>This post has been deleted by: $usr</strong></font>'; your need to test it in your IPB (also this should be in the third party section, as this is for IPB) Link to comment https://forums.phpfreaks.com/topic/68688-solved-help-adding-font-effects-to-a-very-small-php-bit/#findComment-345252 Share on other sites More sharing options...
Padgoi Posted September 10, 2007 Author Share Posted September 10, 2007 thanks, you helped me out, I actually figured it out myself with your help: $post = '<font color="#FF0000"><strong>(This post has been deleted by: '. $usr . ')'; Link to comment https://forums.phpfreaks.com/topic/68688-solved-help-adding-font-effects-to-a-very-small-php-bit/#findComment-345275 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.