life_maker Posted December 6, 2005 Share Posted December 6, 2005 Hallohow can i print data displayed in tables using PHP code Link to comment Share on other sites More sharing options...
Selacius Posted December 15, 2005 Share Posted December 15, 2005 Can you give us an example? Are you creating tables and wanting to display data within the rows? If so then when your creating your table encompass the whole thing in an echo " statement making sure that at the end of the table code you have ";. And also if there are any quotation marks within the code either remove them if not necessary or preceed them with a \. Link to comment Share on other sites More sharing options...
life_maker Posted December 16, 2005 Author Share Posted December 16, 2005 Can you give us an example? Are you creating tables and wanting to display data within the rows? If so then when your creating your table encompass the whole thing in an echo " statement making sure that at the end of the table code you have ";. And also if there are any quotation marks within the code either remove them if not necessary or preceed them with a \.<{POST_SNAPBACK}> if u have the following table echo '<table>';while($res = mysql_fetch_array($qry)){ echo'<tr><td>'; echo $res['name']; echo'</td></tr>';}echo '</table>';and also u have a botton called Print on the same formwhat i want is when u press the botton to print the data in the table on printer Link to comment Share on other sites More sharing options...
alzable Posted December 18, 2005 Share Posted December 18, 2005 One thing you could do for this is make a page with just the table and print the whole thing out...thats simple but not as user freindly. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now