Jump to content

Recommended Posts

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.