RON_ron Posted May 31, 2010 Share Posted May 31, 2010 Hi... How do I write this correctly? I need all to be seperated by a hyphen (-)? ".$abn."-".$abna."-".$abnb."-".$abnc." Quote Link to comment https://forums.phpfreaks.com/topic/203407-a-set-of-in-one-line/ Share on other sites More sharing options...
riwan Posted May 31, 2010 Share Posted May 31, 2010 "$abn-$abna-$abnb-$abnc" should do ? Quote Link to comment https://forums.phpfreaks.com/topic/203407-a-set-of-in-one-line/#findComment-1065567 Share on other sites More sharing options...
RON_ron Posted May 31, 2010 Author Share Posted May 31, 2010 it's a HTML email in PHP. Sorry for not saying it earlier. The code is as follows... Not working. it state as "undefined" <TR> <TD align='left' width='100'>YUOR CODE: </TD><TD align='left' width='700'>".$abn."".$abna."".$abnb."".$abnc."</TD> </TR> Quote Link to comment https://forums.phpfreaks.com/topic/203407-a-set-of-in-one-line/#findComment-1065570 Share on other sites More sharing options...
riwan Posted May 31, 2010 Share Posted May 31, 2010 Well, you should have give a bit more code. if its in php then echo "<TR> <TD align='left' width='100'>YUOR CODE: </TD><TD align='left' width='700'>$abn-$abna-$abnb-$abnc</TD> </TR> "; if its in html then <TR> <TD align='left' width='100'>YUOR CODE: </TD><TD align='left' width='700'><?php echo "$abn-$abna-$abnb-$abnc"; ?></TD> </TR> Quote Link to comment https://forums.phpfreaks.com/topic/203407-a-set-of-in-one-line/#findComment-1065572 Share on other sites More sharing options...
RON_ron Posted May 31, 2010 Author Share Posted May 31, 2010 Hi riwan... that dosen't work. But when I put a dot infron it works... E.g. <TR> <TD align='left' width='100'>YOUR CODE: </TD><TD align='left' width='700'>".$abn."</TD> </TR> how do I add the rest in front of eachother seperated by an hyphen? Quote Link to comment https://forums.phpfreaks.com/topic/203407-a-set-of-in-one-line/#findComment-1065579 Share on other sites More sharing options...
riwan Posted May 31, 2010 Share Posted May 31, 2010 <TR> <TD align='left' width='100'>YOUR CODE: </TD><TD align='left' width='700'>".$abn."-".$abna."-".$abnb."-".$abnc."</TD> </TR> if it still doesn't work, it would be better if you could attach your file Quote Link to comment https://forums.phpfreaks.com/topic/203407-a-set-of-in-one-line/#findComment-1065583 Share on other sites More sharing options...
RON_ron Posted May 31, 2010 Author Share Posted May 31, 2010 Hi riwan... Thanks! infact you were right in the first post!! I made a mistake in "$abna",... as it should be "$anba"... Thanks once again for your valuable time!!!!!!! Quote Link to comment https://forums.phpfreaks.com/topic/203407-a-set-of-in-one-line/#findComment-1065584 Share on other sites More sharing options...
riwan Posted May 31, 2010 Share Posted May 31, 2010 You're welcome. Quote Link to comment https://forums.phpfreaks.com/topic/203407-a-set-of-in-one-line/#findComment-1065585 Share on other sites More sharing options...
Zane Posted May 31, 2010 Share Posted May 31, 2010 "$abn-$abna-$abnb-$abnc" should do ? This will work fine if you put curly braces around the variables "{$abn}-{$abna}-{$abnb}-{$abnc}" Quote Link to comment https://forums.phpfreaks.com/topic/203407-a-set-of-in-one-line/#findComment-1065686 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.