dj scousey Posted February 5, 2008 Share Posted February 5, 2008 Hi all, Im coming to my wits end here!! Right let me explain my situation: I have a shoutbox that i have made, by reading different tutorials; which has resulted in me having 2 different databases getting accessed. (one for logon and one for the shouts/smilies). I have my login script just how i want it now, and also my shout script too (apart from one thing) On the form which the users fill in to post a shout, i would like their email address already in the input value attribute. BUT.... i cant seem to do it, as once they are inside the main shoutbox, they are running off one database ($shouts) and the information i need is in the other database ($login). What i was THINKING was, is there anyway of making a seperate php file to grab the data from the $login database and echo it, and then put an include on my shoutbox input value attribute section?? the thing i got stuck with was, how does it know which email address to get... because i dont know how to cross reference between 2 different databases. any help would be greatly appreciated!! Link to comment https://forums.phpfreaks.com/topic/89618-really-need-help/ Share on other sites More sharing options...
PHP Monkeh Posted February 5, 2008 Share Posted February 5, 2008 Is there any reason you need to use 2 seperate databases? Can't you just use 1 database and use 2 tables instead? Link to comment https://forums.phpfreaks.com/topic/89618-really-need-help/#findComment-459250 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.