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." 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 ? 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> 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> 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? 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 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!!!!!!! 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. 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}" 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
Archived
This topic is now archived and is closed to further replies.