> Dear List,
> How can I include a dynamically generated array:
> e.g. for($i=0; $i { $cols[$i]= mysql_field_name($fields,$i); }
>
> into a MySQL insert query of the type:
-snip-
/** {{{2
* create an INSERT or UPDATE query based on values of an associative array,
* whe
> how can i concatenate two strings? i cant seem to find the
> function... thanks :)
Read this:
http://www.php.net/manual/en/language.operators.string.php
And then this:
http://www.php.net/manual/en/language.types.string.php
Regards,
Philip
--
PHP General Mailing List (http://www.php.ne
EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, June 30, 2003 8:32 AM
Subject: Re: [PHP] Concatenate
> On Mon, 30 Jun 2003, Ryan Vennell wrote:
>
> > how can i concatenate two strings? i cant seem to find the function...
thanks :)
>
> With .
>
> Derick
>
>
On Mon, 30 Jun 2003, Ryan Vennell wrote:
> how can i concatenate two strings? i cant seem to find the function... thanks :)
With .
Derick
--
"Interpreting what the GPL actually means is a job best left to those
that read the future by examining animal entrails."
-
Produces :
alalabas here
Produces :
Arrays here
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
99%
- Original Message -
From: "Soeren Nielsen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 29, 2001 3:46 PM
Subject: Re: [PHP] c
> does anyone know of a scenario (perhaps involving
> non-string data) where the concatenation does not
> return the same answer?
If you have three vars:
$user = "foo";
$users = array("Peter","Michael");
This could be a problem:
echo "$users hair is brown";
if what you ment was:
echo $string."s
On Tue, 28 Aug 2001 16:34:44 +0100, [EMAIL PROTECTED] (Seb Frost)
wrote:
>$string0 = "hello";
>$string1 = "goodbye";
>
>$string2 = $string0 . " and " . $string1;
>
>result:$string2 = "hello and goodbye"
also,
$string2="$string1 and $string2";
i'm not sure if there are subtleties there
$string0 = "hello";
$string1 = "goodbye";
$string2 = $string0 . " and " . $string1;
result:$string2 = "hello and goodbye"
- seb
-Original Message-
From: Jeremy Morano [mailto:[EMAIL PROTECTED]]
Sent: 28 August 2001 16:28
To: [EMAIL PROTECTED]
Subject: [PHP] concatenate?
Hel
PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: W.D. [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 5:38 AM
To: Philip Olson
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] concatenate vars?
Thanks,
do you know if making multiple statements to eregi
Thanks,
do you know if making multiple statements to eregi in line 3 is possible?
1. if(...something...)
2.{
3. (eregi("stuff1", $one)("stuff2", $two)("stuff3", $three)) ?
4. do something : do something else;
_
Do You Yahoo!?
Get
> I need to combine two variables which are set to two form field values and
> will be put into $from of mail(). Should it be $from = "$varOne . $varTwo"
> ?
Check out :
Using Strings :
-
Sorry
I know the answer now.
Thank you
Fabian Fabela
From: "Fabian Fabela" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 15, 2001 3:30 AM
Subject: [PHP] Concatenate a variable.
Hello.
I receive from a post T1, T2, T3, ... Tn
I want to put then in an array with a for,
12 matches
Mail list logo