RE: [PHP] re-creating a variable name

2004-03-05 Thread Chris W. Parker
Cory Berry on Friday, March 05, 2004 12:45 PM said: > $query = "Update table SET StartDate='$FormStartDate.=$i ' where > id=$i"; that doesn't really make sense. using the following values: $FormStartDate = "x"; $i = "y"; the output would be: "UPDATE table SET St

Re: [PHP] re-creating a variable name

2004-03-05 Thread Jason Wong
On Saturday 06 March 2004 03:29, Cory Berry wrote: > Hello, I'm having difficulty dynamically creating a variable name for > mysql_query. > I've tried using variable variables. I tried to re-create the sql string by > $a = "update table set startdate='$startdate" > $a .= $i ." ' where id=$i"); > bu

RE: [PHP] re-creating a variable name

2004-03-05 Thread Jason Davidson
my thoughts exactly... seems odd that your are updating a single table multiple times like that. Jason "Chris W. Parker" <[EMAIL PROTECTED]> wrote: > > Cory Berry > on Friday, March 05, 2004 11:29 AM said: > > > Hello, I'm having difficulty dynamically creating

Re: [PHP] re-creating a variable name

2004-03-05 Thread Cory Berry
I could try and explain my problem again but it would be easier if I just include the code. Because $FormStartDate1 is the name of the variable, I'm trying to recreate the name of the variable with the for loop after "edit" is submitted. Thanks again. Cory "Chris W. Parker" <[EMAIL PRO

RE: [PHP] re-creating a variable name

2004-03-05 Thread Chris W. Parker
Cory Berry on Friday, March 05, 2004 11:29 AM said: > Hello, I'm having difficulty dynamically creating a variable name for > mysql_query. [snip] > It doesn't execute. > Can someone tell me what I'm doing wrong. Any help would be greatly > appreciated. ?? i ha