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!
Hi.
I want to use this text in an include file: "demo_2".
demo_2 is a table name in a database.
I want to call this table from a select statement from another file, i.e
Not really. It's just that you appear to be writing some really bad code. If you can explain why you're doing it we might well be able to offer some advice about how you can improve it.
Oh. Ok.
I am a novice at this, so I'm pretty sure its bad code!
The thing is, I try to keep it simple in such a way I can understand what I'm doing.
I'll try to explain:
I have a template directory which I use to copy to create other directories, each will have their own name/DB name etc. I have 132 folders (named 1-132), with identical files in. In 2 of the files I have a select statement. Instead of having to change the "select demo_1 ..." table in each file, I was thinking of having this statement in a separate file, so I would only have to change this file instead of everything in the 132 folders.
I realise this is still bad coding. Hope you can understand the waffle.
Wayne.