date notation
when use "record insertion form wizzard" made date
automaticly php notation, dont know notation.
notation or find notation?
automaticly php notation, dont know notation.
notation or find notation?
ad voets wrote:
> when use "record insertion form wizzard" made date
> automaticly php notation, dont know notation.
> notation or find notation?
do mean want insert current date? if so, best
way use mysql function now().
unfortunately, can't use mysql functions record insertion
form wizard. need adjust sql query hand afterwards.
dreamweaver stores query in code view this:
$insertsql = sprintf("insert mytable(col1, col2) values (%s, %s)",
getsqlvaluestring($_post['col1'], "text"),
getsqlvaluestring($_post['col2'], "text"));
to add current date in column called "thedate", amend code
like this:
$insertsql = sprintf("insert mytable(col1, col2, thedate) values
(%s, %s, now())",
getsqlvaluestring($_post['col1'], "text"),
getsqlvaluestring($_post['col2'], "text"));
--
david powers, adobe community expert
author, "foundation php dreamweaver 8" (friends of ed)
author, "php solutions" (friends of ed)
http://foundationphp.com/
> when use "record insertion form wizzard" made date
> automaticly php notation, dont know notation.
> notation or find notation?
do mean want insert current date? if so, best
way use mysql function now().
unfortunately, can't use mysql functions record insertion
form wizard. need adjust sql query hand afterwards.
dreamweaver stores query in code view this:
$insertsql = sprintf("insert mytable(col1, col2) values (%s, %s)",
getsqlvaluestring($_post['col1'], "text"),
getsqlvaluestring($_post['col2'], "text"));
to add current date in column called "thedate", amend code
like this:
$insertsql = sprintf("insert mytable(col1, col2, thedate) values
(%s, %s, now())",
getsqlvaluestring($_post['col1'], "text"),
getsqlvaluestring($_post['col2'], "text"));
--
david powers, adobe community expert
author, "foundation php dreamweaver 8" (friends of ed)
author, "php solutions" (friends of ed)
http://foundationphp.com/
More discussions in Dreamweaver support forum
adobe
Comments
Post a Comment