samona Posted November 26, 2007 Share Posted November 26, 2007 First of all, I would like to say this is my first time here. I am looking forward to being a participant in this forum Next, my question: Is it possible to print information from multiple databases on one page/form. For example, I want to print information that is in three databases, and I want to be able to print a few related fields on one page. Is that possible? Thank you for your help in advance. Quote Link to comment Share on other sites More sharing options...
janim Posted November 26, 2007 Share Posted November 26, 2007 maybe this : $DB1="database_1"; $DB2="database_2"; $DB3="database_3"; $sql=mysql_db_query($DB1,"select * from ........ $sql2=mysql_db_query($DB2,"select * from ..... $sql3=mysql_db_query($DB3,"select * from ..... i hope this is work not tested Quote Link to comment Share on other sites More sharing options...
samona Posted November 26, 2007 Author Share Posted November 26, 2007 Thank you, I will try that. Quote Link to comment Share on other sites More sharing options...
adam291086 Posted November 26, 2007 Share Posted November 26, 2007 you can also use mysql_fetch_array to store all the query results in arrays, then define a variable for each piece of information with a while loop. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.