PHP Questions Home
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

How do I insert the date into my table?


With your mysql table inserting todays date is a doddle.

All you need to do is use the built-in CURDATE function, and it works a little like this:

<?php

$q 
mysql_query("UPDATE todaysdate SET todayis = CURDATE()");
//sets the field todayis in table todaysdate to 2007-09-18 or whatever the current date is
?>



ASK A QUESTION

More mysql PHP Questions

Welcome by regersteration form First name: last name:

HOW can i retrieve database elements and make them select options on a form My Test Form Please, choose item to order:

how do i upload an image to database?

how will use a mysql_query to get a single4 person list? With example.

Why will this statement not print a column with "lastname space firstname"? Print " .$info['businessname'] "; Print " .$info['firstname']. " " .$info['lastname'] "; I want to see 2 columns - a



Custom Search