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. Link to comment https://forums.phpfreaks.com/topic/78928-multiple-tables-print-to-one-page/ 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 Link to comment https://forums.phpfreaks.com/topic/78928-multiple-tables-print-to-one-page/#findComment-399428 Share on other sites More sharing options...
samona Posted November 26, 2007 Author Share Posted November 26, 2007 Thank you, I will try that. Link to comment https://forums.phpfreaks.com/topic/78928-multiple-tables-print-to-one-page/#findComment-399430 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. Link to comment https://forums.phpfreaks.com/topic/78928-multiple-tables-print-to-one-page/#findComment-399431 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.