bob2588 Posted October 23, 2009 Share Posted October 23, 2009 i have a quick question echo "<table width='914' border='1'> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td>Welcome:<?php echo" $row['FirstName'] . " " . $row['LastName']";?> </td> <td>Date:<? echo date('M,d,Y'); ?></td> </tr> is it posiable to do this put a new php line in the echo Thanks bob Quote Link to comment https://forums.phpfreaks.com/topic/178758-solved-question/ Share on other sites More sharing options...
Maq Posted October 23, 2009 Share Posted October 23, 2009 Why don't you run the script and find out? posiable You mean possible? Quote Link to comment https://forums.phpfreaks.com/topic/178758-solved-question/#findComment-942946 Share on other sites More sharing options...
smerny Posted October 23, 2009 Share Posted October 23, 2009 yes, but not that way, you dont need to start php when php is already started... just concatenate the strings echo "<table width='914' border='1'> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td>Welcome:". $row['FirstName'] ." ". $row['LastName']."</td> <td>Date:". date('M,d,Y') ."</td> </tr> Quote Link to comment https://forums.phpfreaks.com/topic/178758-solved-question/#findComment-942947 Share on other sites More sharing options...
bob2588 Posted October 23, 2009 Author Share Posted October 23, 2009 thanks you that what i need to know bob Quote Link to comment https://forums.phpfreaks.com/topic/178758-solved-question/#findComment-942954 Share on other sites More sharing options...
jcombs_31 Posted October 23, 2009 Share Posted October 23, 2009 Better yet, why would you want to echo the entire table that way? The nice thing about PHP is that you can open and close PHP tags as much as you wish. <table width='914' border='1'> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td>Welcome: <?php echo $row['FirstName'] ." ". $row['LastName']; ?></td> <td>Date: <?php echo date('M,d,Y'); ?></td> </tr> That is my personal preference anyway in most cases. Quote Link to comment https://forums.phpfreaks.com/topic/178758-solved-question/#findComment-942959 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.