For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > April 2004 > Re: [PHP-DB] Inserting data into a table









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] Inserting data into a table
Uzi Klein

2004-04-22, 1:31 am

Use UPDATE statement

UPDATE tbl SET date_field=NOW() where index=your_index

or

UPDATE tbl SET date_field='2004-04-22' where index=your_index


----- Original Message -----
From: "charalambos nicolaou" <npambos@hotmail.com>
To: <php-db@lists.php.net>
Sent: Thursday, April 22, 2004 3:35 AM
Subject: [PHP-DB] Inserting data into a table


:Hi everyone,

How can I insert a value in to a field of a MySQL table which is already
NULL but the others in the same row are not.

Also I would like to know if there is a way of inserting in to a DATE filed
the date of the browser.

Thanks in advance.
Charalambos

________________________________________
_________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com