Replies Back to Article
Using Dreamweaver MX with ASP and mySQL
I see! Thnx kerry. Have you written any tutorials on creating a 'cart' system using asp and mySQL?
cheers,
Jim
i have a email system i made in my database where it stores userID, fromID, subject,message, datecreated, viewable, fromviewable, status. the datecreated default is set to CURRENT_TIMESTAMP. now when i insert a record is stores the date and time created, now i've found that when i update the record it changes the datecreated to the current date time updated.. i dont want that.. in access never had to worry about that.. what is the fix around this? can i create a hidden text field set value to CURRENT_TIMESTAMP and include in insert when creating a email?
THANKS

I found having this on my page in a hidden field will do the trick too, ok its not as great as doing it server side but it works and was easier for me to understand. it would be great if some one created an extension specific for dates and mysql. dwfaq.com have a date extension but it will not formate it suitable for mysql databases.
any way this worked for me in the hidden field
<input name="dt" type="hidden" id="dt" value="<%Response.Write Year(now) & "-" & Month(now) & "-" & Day(now) & " " & hour(now) & ":" & Minute(now) & ":" & Second(now)%>">
kenny