RE: [PHP] 2 newbie questions ;)

2002-04-12 Thread Collins, Robert
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"

[PHP] 2 newbie questions ;)

2002-04-12 Thread Steve Bradwell
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

RE: [PHP] 2 NEWBIE QUESTIONS

2001-08-22 Thread Matthew Loff
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

RE: [PHP] 2 NEWBIE QUESTIONS

2001-08-22 Thread Kees Hoekzema
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

RE: [PHP] 2 NEWBIE QUESTIONS

2001-08-22 Thread Jason Murray
> 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

[PHP] 2 NEWBIE QUESTIONS

2001-08-22 Thread Georgie
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