TED]
Subject: [PHP] 2 newbie questions ;)
Hi there,
I am populating form elements (type="text") with values from a db, but if
the string has a space in it, it cuts the string off at the space. eg. $var
= "the cat in the hat" but all you see in the text box is "the"
Hi there,
I am populating form elements (type="text") with values from a db, but if
the string has a space in it, it cuts the string off at the space. eg. $var
= "the cat in the hat" but all you see in the text box is "the". is there a
function I should be adding to my echo line?
Also I have an
ying to do that sounds a bit unnecessary, but take
a look at eval()
http://www.php.net/manual/en/function.eval.php
-Original Message-
From: Georgie [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 7:17 PM
To: [EMAIL PROTECTED]
Subject: [PHP] 2 NEWBIE QUESTIONS
1) Is there
hey,
>
> 1) Is there any PHP command that'll convert a MySQL database
> timestamp into
> a format that humans can read?!! For example, I want to change
> "20010822001245" into "00:12.45 on the 22-08-2001"?
take a look at:
http://www.php.net/manual/en/function.date.php
> 2) This is the hard que
> 1) Is there any PHP command that'll convert a MySQL database
> timestamp into a format that humans can read?!! For example, I want to
> change "20010822001245" into "00:12.45 on the 22-08-2001"?
\n";
return $unix;
}
?>
You could add a $dateformat input variable, and execute Date()
i
1) Is there any PHP command that'll convert a MySQL database timestamp into
a format that humans can read?!! For example, I want to change
"20010822001245" into "00:12.45 on the 22-08-2001"?
2) This is the hard question. I have a script that gets values from a
database and then includes a php pag
6 matches
Mail list logo