Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Mysql Update And Time Problem
Old 01-27-2008, 12:21 PM Mysql Update And Time Problem
andyp's Avatar
Extreme Talker

Posts: 165
Name: andy patterson
Trades: 0
Question1: how do i add the current server time/date to mysql using php
Question2: How do I edit Mysql records in php using forms.
andyp is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-28-2008, 03:08 AM Re: Mysql Update And Time Problem
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
What exactly you cannot perform in both cases?

Adding current date and/or time to the mysql table does not depend on application language at all since it is done with native mysql function now(): insert into table set time_field = now().

To edit mysql record you must first select that record and output it into the form using loops and echo, then in your script you should create a query looking like following: update table_name set field1 = 'value1', field2 = 'value2', ..., fieldN = 'valueN' where id = id_of_record
Obviously that you need to pass id of record and new values within your form.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Reply     « Reply to Mysql Update And Time Problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.54056 seconds with 12 queries