learingperl01
MIS
Hello everyone wondering if someone could please shed some light/point me in the right direction. I have a DB that has multiple tables...a table for each day. We do not have merge tables so if I need to query a range of tables over 5 days I have to run the same exact query five times but changing the "from" table. Wondering if there is anyway to script this in PHP so that it can be read from a file which has all the tables that need to get looped through the query. I am still pretty new to PHP so not sure how to do something this advanced wondering if some one could PLEASE give me an example on how to accomplish this. I was wondering if the following below would be possible where the "from" field is populated using a $variable
$sql = "select name, date, id, t_id, s_id, app from ($domlist_str);";