PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have a configuration file with the equivalent of the following:
sql_statement = "select * from $table a where a.x = '$x'"
I then read the sql_statement line from the configuration file in another php file where I would like $table and $x to be parsed. If I leave it like above, it tries to parse it immediately, not later when I need it. Does anyone have any idea on how the sql_statement line could be written so that it would be parsed in the file that reads it?
I caught the first one that didn't apply to me, but somehow completely missed the second...which is exactly what I was asking for. I apologize for the oversight.