Posted on 2004-08-24
Last Modified: 2008-03-06
I can't get line " print ("<td align=left nowrap class='smallfont'>(date("l F d, Y", $LastMod))</td>");
 " to be in it's correct format. I like to be able to use it's class. It can tricky sometime creating tables inside a php script.

  $LastMod = filemtime("MyAdministrator.mdb");
      print ("<table width=100% cellpadding=0 cellspacing=0>");
      print ("<tr>");
      print ("<td align=left nowrap class='smallfont'>&nbsp;&nbsp;&nbsp;Last modification was: <br></td>");
      print ("<td>&nbsp;&nbsp;&nbsp;</td>");
      print ("<td align=left nowrap class='smallfont'>(date("l F d, Y", $LastMod))</td>");
      print ("</tr>");
      print ("</table>");
Question by:imaw
  • 2

Expert Comment

ID: 11886575
why are you doing a bunch of prints? instead just do one print (I use echo personally) like

echo '<table width=100% cellpadding=0 cellspacing=0>\n
     <td align=left nowrap class='smallfont'>&nbsp;&nbsp;&nbsp;Last modification was: <br></td>\n
     <td align=left nowrap class="smallfont">('.date("l F d, Y", $LastMod).')</td>\n

you can take out the \n if you dont want the new lines

what are you trying to do with the Date ? if you show me an example of how you want to be formatted I will tell you how to do it.

Accepted Solution

LiquidIce911 earned 500 total points
ID: 11886582
sorry you have to change the other class='smallfont' to class="smallfont"

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now