Jump to content

Recommended Posts

Hello there,

 

As my first post I can say i`m a noon in php..

 

I need some help with one code and I don`t know how to make it.

 

The problem it is I want to display some infos from DB but there it`s a trick

 

table 1: - accounts

id, account_name and online

 

tavle 2: - users

name, account_id

 

well what I want it is to display on a page the Names that are online but I need to link somehow(I don`t know) so the script search the online accounts and after link to users and display it ..

 

If any one can help me will be verry nice.

 

Regards

Link to comment
https://forums.phpfreaks.com/topic/189744-help-with-a-db-selection/
Share on other sites

Thanks for reply but I made a mystake in description .. :(

 

The problem it is that are 2 separated DB`s

 

accounts DB and users DB

 

in a.db I have table accounts  (id,name,online) where online its 1 or 0

in u.db I havet table users (name, account_id)

 

*names from acc and user are not same

 

So can you please tweek your query to work for this ?

 

Regards and thanks again

 

 

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.