Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Scorpio_Boy #1
Mysql Date Problem
Hi, I am trying to get the date from a MYSQL server into a PHP page I am
creating with Dreamweaver, I create a new recordset and go to advanced and
enter the following query SELECT CURDATE() if I click test it returns the
current date correctly, however as soon as I close the window the recordset
displays MM_ERROR 1064 SQL Syntax Error and stops working. I am sure this is
something really simple, what? Also the date is returned as Year-Month-Day ,
can I change that to Day-Month-Year with + something?
Scorpio_Boy Guest
-
date query problem, date in variable
I am using the following query : $query_archief = "SELECT * FROM vacatures where dd_eind_plaatsing < $dd_eind_plaatsing_archief1" note:... -
php-mysql date problem
Hello, I'm new to php and mysql and I use Dreamweaver MX 2004, so sorry for this "newbie" question... I've found no answer in the forum ... I've... -
PHP Date into MySQL
Hi, I have the following script that is installed to obtain the date 7 days into the future and display 1 weeks worth of dates (minus Sunday). I... -
problem with date from MySQL
I've this date in my MySQL database: 2003-12-29 18:24:20 now, in my PHP code, I'm trying to show only the date in a table's cell. Here is... -
date mysql
Hi I have troubles with converting a date value to unixtime! In mysql I have a table named date TYPE "DATE" (2003-09-05) Now I want it to convert... -
David Powers #2
Re: Mysql Date Problem
Scorpio_Boy wrote:
I don't know why Dreamweaver does that, but it's rather pointless using> Hi, I am trying to get the date from a MYSQL server into a PHP page I am
> creating with Dreamweaver, I create a new recordset and go to advanced and
> enter the following query SELECT CURDATE() if I click test it returns the
> current date correctly, however as soon as I close the window the recordset
> displays MM_ERROR 1064 SQL Syntax Error and stops working. I am sure this is
> something really simple, what? Also the date is returned as Year-Month-Day ,
> can I change that to Day-Month-Year with + something?
MySQL to display the current date. PHP does that for you with the
greatest of ease, and in the order you want:
<?php echo date('d-m-Y'); ?>
--
David Powers
Author, "Foundation PHP 5 for Flash" (friends of ED)
Co-author "PHP Web Development with DW MX 2004" (Apress)
[url]http://computerbookshelf.com[/url]
David Powers Guest
-
Scorpio_Boy #3
Re: Mysql Date Problem
Thank you for the response, i know I can get the info from php, but i
particularly want to use a mysql query so that i can display the info within a
form and then use it as part of a record that gets submitted back into the
database. I have made other custom recordsets work in the past and I'm really
trying to find the reason why this one won't work...
Scorpio_Boy Guest
-
David Powers #4
Re: Mysql Date Problem
Scorpio_Boy wrote:
The problem with trying to do that is that your date will still be in> Thank you for the response, i know I can get the info from php, but i
> particularly want to use a mysql query so that i can display the info within a
> form and then use it as part of a record that gets submitted back into the
> database.
the wrong format for MySQL. Why not just amend your insert statement to
set your date column as CURDATE()?
--
David Powers
Author, "Foundation PHP 5 for Flash" (friends of ED)
Co-author "PHP Web Development with DW MX 2004" (Apress)
[url]http://computerbookshelf.com[/url]
David Powers Guest



Reply With Quote

