close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Bit of a date issue

Thread began 4/05/2012 10:17 pm by newimage96814918 | Last modified 4/05/2012 10:51 pm by newimage96814918 | 477 views | 2 replies


Bit of a date issue

I have a date in my database but it is storeded as a string Varchar10 gets inserted fine and everthing through the datepicker field but now I want to display date form string in the m d Y format instaed of how it comes from the database 2012-04-10.
So I have a formula I've tried:
$timestamp = $row_rsclasslist['start_date'];
$timestamp = strtotime($timestamp);
$makedate = date("d, m, Y",$timestamp);

and I have a query with a repeat region to display:
<?php do { ?>
<table width="100%" border="0">
<td width="35%"><a href="ClassDetail.php?event_id=<?php echo $row_rsclasslist['class_id']; ?>"><?php echo $row_rsclasslist['class_title']; ?></a></td>
<td width="65%"><?php echo $row_rsclasslist['start_date']; ?> <?php echo $makedate; ?></td>
<?php } while ($row_rsclasslist = mysql_fetch_assoc($rsclasslist)); ?>

It does display and the $makedate works for the first record in the repeat region it just repeats the same date as the first record like so:

Tribal Belly Dancing
2012-04-10 10, 04, 2012

Learn to Love Watercolor and Pastels
2012-04-11 10, 04, 2012

The Blue Shutters- Watercolor
2012-04-21 10, 04, 2012

Reinventing from the Wheel
2012-04-21 10, 04, 2012

Painted Floor Clothes
2012-04-23 10, 04, 2012

Introduction to Pastels
2012-04-27 10, 04, 2012

Correct date is one on left

So what am I missing? Why is'nt this repeating?


Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...