View Single Post
Old 11-08-2007, 03:19 PM   #1 (permalink)
CoryMathews
The Addict
 
CoryMathews's Avatar
 
Join Date: Nov 2007
Location: USA
Posts: 256
Thanks: 7
CoryMathews is on a distinguished road
Default 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.
CoryMathews is offline  
Reply With Quote