I am trying to embed a variable within a variable like this:
$item_$i_color;
Here is a sample of the eval code I am using:
$sql .= "$item$i_color;= '$item$i_color";
$sql = addslashes($sql);
eval("\$sql = \"$sql\";");
$sql = stripslashes($sql);
I can't seem to make this work.
What is the proper syntax?
George Loch