Re: [PHP] Auto Incrementing a Variable name?

2003-02-25 Thread Leif K-Brooks
--- Original Message - From: "Rick Emery" <[EMAIL PROTECTED]> To: "Jeff Pauls" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 3:26 PM Subject: Re: [PHP] Auto Incrementing a Variable name? You're on the right track: fo

Re: [PHP] Auto Incrementing a Variable name?

2003-02-25 Thread Jeff Pauls
;"; $result_update = mysql_query($query_update) or die("Query failed"); } Thanks for all the help! Jeff - Original Message - From: "Jason k Larson" <[EMAIL PROTECTED]> To: "Jeff Pauls" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>

Re: [PHP] Auto Incrementing a Variable name?

2003-02-25 Thread John Nichel
name_" and "_ff" just breaks it more. Jeff - Original Message - From: "Rick Emery" <[EMAIL PROTECTED]> To: "Jeff Pauls" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 3:26 PM Subject: Re: [PHP] Auto In

Re: [PHP] Auto Incrementing a Variable name?

2003-02-25 Thread Jeff Pauls
t;Rick Emery" <[EMAIL PROTECTED]> To: "Jeff Pauls" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 3:26 PM Subject: Re: [PHP] Auto Incrementing a Variable name? > You're on the right track: > for ($i = 1; $i <= 3; $i++) {

Re: [PHP] Auto Incrementing a Variable name?

2003-02-25 Thread Jason k Larson
$name1 = 'Hello, World!'; $i = 1; $var = 'name'.$i; print ${$var}; HTH, Jason k Larson Jeff Pauls wrote: Hi, I've been playing with this for a while now. Say I had the following variables: $name1 = "joe"; $name2 = "janis"; $name3 = "joanne"; Is there a way in php to increment the variable name not

Re: [PHP] Auto Incrementing a Variable name?

2003-02-25 Thread Rick Emery
03 3:18 PM Subject: [PHP] Auto Incrementing a Variable name? Hi, I've been playing with this for a while now. Say I had the following variables: $name1 = "joe"; $name2 = "janis"; $name3 = "joanne"; Is there a way in php to increment the variable name not the value? Somet

Re: [PHP] Auto Incrementing a Variable name?

2003-02-25 Thread Kevin Stone
PM Subject: [PHP] Auto Incrementing a Variable name? Hi, I've been playing with this for a while now. Say I had the following variables: $name1 = "joe"; $name2 = "janis"; $name3 = "joanne"; Is there a way in php to increment the variable name not the

[PHP] Auto Incrementing a Variable name?

2003-02-25 Thread Jeff Pauls
Hi, I've been playing with this for a while now. Say I had the following variables: $name1 = "joe"; $name2 = "janis"; $name3 = "joanne"; Is there a way in php to increment the variable name not the value? Something like this for ($i = 1; $i <= 3; $i++) { $arr_name[$i] = $name.$i;