11-08-2007, 03:19 PM
|
#1 (permalink)
|
|
The Addict
Join Date: Nov 2007
Location: USA
Posts: 256
Thanks: 7
|
converting a string to a var..
another question again.
i got an array of strings (which are my database table names) and i want to check them each to see if they are set from the form submitted. so my array looks like
$tables = array('table1', 'table2' ... 'table50')
now i want to access them something like this.
with my for loop
for (loop through array.)
convert the indexed array so say $tables[1] to be the var $table1 instead of just table.
i didnt think about this before i started the array and dont really want to retype since i got close to 100 tables.
i think that made sense.
|
|
|
|