Jump to content

print data in PHP


life_maker

Recommended Posts

  • 2 weeks later...

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

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 \.

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...