I want to be able to define a table name prefix so that it's easy to change in the php script. The table name "suffix" / main name should stay the same.
But what is the correct format in the MySQL select?
Let's say that the table name is "pre_tblname". I define $tb_prefix such as:
$tb_prefix = "pre";
Now the SELECT part of the MySQL query should look something like:
Thanks, it works Now I created one more problem because of it though... When I specify the $tb_prefix variable at the beginning of the script, it is inaccessible from within a while loop which is in a function.
Is it possible to read value of variable from within loop which is placed into a function, if that variable have been specified before / above the function? You know, I am still very much in a newbie mode