Jump to content

Recommended Posts

I need to join a table [to simply drag all recordset column values over into rows. No need for repeat region on page.]

 

Already I have a seperate result page coming from a search menu.

This works with the first of the two tables I am using.

-------------------------------

SELECT JoID, `Jopot`, Joping FROM posts

WHERE 'Jopot` LIKE '%colname%'

 

NAME: colname

Default: 1

$HTTP_Get_Vars['Jopot']

 

Table 'Easy' has a primary 'ID' named this way, with:

ID

Epos

EPost

EClass

EStart

EEnd

 

note: 'EasID'column appears on this same table 'posts' as a foreign key to table 'Easy' .

Table 'posts' has:

JoID (primary, autonumber)

EasID (foreign to Easy)

Jopot

Joping

--------------------------------------

I've tried SELECT * many different ways but haven't been able to make this move! I've heard perhaps I should itemize these columns one by one to make them display better (for ordering/renaming column). This right?

 

How would MySQL statement read?

Link to comment
https://forums.phpfreaks.com/topic/1693-mxphp-table-join/
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.