Looping through mysql database

后端 未结 3 1948
慢半拍i
慢半拍i 2021-01-27 20:32

I have series of mysql databases on my server. The names of these databases are stored in a separate database table (users) - column(dbname) . I want to loop through table (user

3条回答
  •  猫巷女王i
    2021-01-27 20:43

    After days of struggle I was able to come out with this solution. I took a lot of ideas from solutions that were provided to this question on this platform. the solutions themselves did not work for me but I had lots of ideas from them.

    ";
    
        //another operation goes here for the same db.
    
        // then close connection for each db
        mysql_Close ($conn);
        }
         } 
        ?>
    

    This was how I went around this problem. It might not be the best solution but this is what I have

提交回复
热议问题