RE: [PHP] Converting to a string

2005-03-24 Thread Tyler Replogle
you could just use the time() or numbers of the date function
From: PartyPosters [EMAIL PROTECTED]
To: php-general@lists.php.net
Subject: [PHP] Converting to a string
Date: Wed, 23 Mar 2005 20:43:30 -
MIME-Version: 1.0
Received: from lists.php.net ([216.92.131.4]) by mc10-f11.hotmail.com with 
Microsoft SMTPSVC(6.0.3790.211); Wed, 23 Mar 2005 12:46:08 -0800
Received: from ([216.92.131.4:3752] helo=lists.php.net)by pb1.pair.com 
(ecelerity HEAD r(5268)) with SMTPid 6E/E2-06694-265D1424 for 
[EMAIL PROTECTED]; Wed, 23 Mar 2005 15:45:22 -0500
Received: (qmail 40045 invoked by uid 1010); 23 Mar 2005 20:43:52 -
Received: (qmail 39914 invoked by uid 1010); 23 Mar 2005 20:43:41 -
X-Message-Info: JGTYoYF78jGnXCyUPttfpp6UKiZEgipk++L9rr4c6Ms=
Return-Path: [EMAIL PROTECTED]
X-Host-Fingerprint: 216.92.131.4 lists.php.net  Mailing-List: contact 
[EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:php-general@lists.php.net
Delivered-To: mailing list php-general@lists.php.net
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
X-Host-Fingerprint: 62.241.163.7 blaster.systems.pipex.net Linux 2.4/2.6
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.
X-OriginalArrivalTime: 23 Mar 2005 20:46:08.0620 (UTC) 
FILETIME=[572A42C0:01C52FE9]

Hello guys,
i am using  date(l dS of F Y h:i:s A) and want to put the value in a 
database as a string,
How do I converting it to a string, this is what I have got so far:-
$v_ship_date = date(l dS of F Y h:i:s A);

Lots of thanks.
  - Original Message -
  From: PartyPosters
  To: php-general@lists.php.net
  Sent: Tuesday, March 22, 2005 10:01 PM
  Subject: Passing Arrays between pages
  Hello,
  Please can someone tell me how you pass arrays between PHP pages.
  I have tried something like this and have tried many variations of this 
but
  nothing working yet ;

  Page 1
  $testArray[0] =Apple;
  $testArray[1] =Banana;
  $testArray[2] =Peach;
  echo INPUT NAME = \kcompany[]\ TYPE = \hidden\ 
VALUE=\$testArray\;

  Page2
  echo $testArray[1];
  On different variations of this I keep on getting 'Array' when I to 
return the variable on the second page

  Many Thanks.
  Kaan.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Converting to a string

2005-03-23 Thread Chris W. Parker
PartyPosters mailto:[EMAIL PROTECTED]
on Wednesday, March 23, 2005 12:44 PM said:

 i am using  date(l dS of F Y h:i:s A) and want to put the value in
 a database as a string, How do I converting it to a string, this is
 what I have got so far:- $v_ship_date = date(l dS of F Y h:i:s A);

That's pretty much all you need. Just make sure you enclose the data
you're passing to the database in the proper quotes (either ' or ,
depending on your needs).

INSERT INTO table (v_ship_date)
VALUES ('$v_ship_date');


Chris.

p.s. For clarity, it's best to start a completely new email to start a
new thread instead of replying to an already established thread.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Converting to a string

2005-03-23 Thread PartyPosters
Thanks guys, you were right - I needed to change the format of the field in
the database.

:D


- Original Message -
From: Daniel Gerzo [EMAIL PROTECTED]
To: PartyPosters [EMAIL PROTECTED]; php-general@lists.php.net
Sent: Wednesday, March 23, 2005 8:58 PM
Subject: Re: [PHP] Converting to a string


Hello PartyPosters,

Wednesday, March 23, 2005, 9:43:30 PM, si odoslal:

 Hello guys,
 i am using  date(l dS of F Y h:i:s A) and want to put the value in a
database as a string,
 How do I converting it to a string, this is what I have got so far:-
 $v_ship_date = date(l dS of F Y h:i:s A);

  well, php doesn't really cares if you got string or bool or integer
  like c or pascal does. php is converting automatically integers to
  strings and so far, you can add your value to the database whithout
  any manual converting...

 Lots of thanks.

--
Later

+--==/\/\==--+   (__)  FreeBSD
|  DanGer [EMAIL PROTECTED]  |\\\'',)  The
| [EMAIL PROTECTED] ICQ261701668 |  \/  \ ^Power
|   http://danger.rulez.sk   |  .\._/_)To
+--==\/\/==--+ Serve

[ Ved evidenciu o svojich udajoch, je to dokaz tvojej prace. ]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php