whare Posted February 18, 2009 Share Posted February 18, 2009 Hi All Right I can see this one being a long topic lol anyway I site I visit has a website intergration pack that they offer to users however this pack consistiong of about 12 webpages can only be intergrated using <iframe></iframe> now some of this data consists of logon pages user admin areas etc so is it possable to create template scripting that most people could understand so that information could be used on a clients website without the need for iframe Now I thought of includes something like.... include "http://website.com/datafile.php"; datafile.php [db connection info] $query = mysql_query("SELECT * FROM `tablename` where data1"); $string1 = $result['data1'] $string2 = $result['data2'] $string3 = $result['data3'] $string4 = $result['data4'] then the end user would put the include at the top of the page in and then the following <table> <tr> <td> <? echo $data1; ?> </td> <td> <? echo $data2; ?> </td> <td> <? echo $data3; ?> </td> <td> <? echo $data4; ?> </td> </tr> </table> now that idea might work for static data the you dont need to interact with and I dont think very secure but it dont help you when you need to use login scripts that need to redirect to YOUR website and not the host site as well as using admin areas noting that you would have more than one site using the same set of scripts all hosted on one site any ideas or even point me in the right direction to where I might get some ideas for this Thanx Will Link to comment https://forums.phpfreaks.com/topic/145666-including-external-data/ Share on other sites More sharing options...
whare Posted February 18, 2009 Author Share Posted February 18, 2009 *Bump* Anybody got some ideas hoe this could be done or as i said in my first post and links thet I might find helpful thanx Link to comment https://forums.phpfreaks.com/topic/145666-including-external-data/#findComment-764972 Share on other sites More sharing options...
whare Posted February 18, 2009 Author Share Posted February 18, 2009 I have been looking at widgets to see if they could offer the functions that i would like for noninteractive data they may be userable Currently I can only fine basic tutorials on widgets and I would like to look deaper into this so i want to no can they be used to change the layout E.G User1 wants simple stats no fancy coding but user2 wants it to be diplayed i a differand order See code below User1... People online xx Max People online xx total users xx user2 might want to show the data like this xx People Online xx Max People Online xx Total users would changing the data to differant formats be possable with widgets? Will Link to comment https://forums.phpfreaks.com/topic/145666-including-external-data/#findComment-764998 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.