close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How to use "Inner join" without recordset disappearing??

Thread began 10/16/2009 1:17 am by kakadong | Last modified 10/16/2009 2:18 pm by Jason Byrnes | 1735 views | 3 replies |

kakadong

How to use "Inner join" without recordset disappearing??

I use the WADA wizard to build a backend ,
and I have to use inner join to make the data more meaningful ,
but , when I try to change the code in results.php

SELECT
PrimaryID, pCompanyID, ShortName, Name, pLandInOut_ID, pNowEnd
FROM
primary_insuarance_table ORDER BY pCompanyID ASC

into

SELECT
PrimaryID
, primary_insuarance_table.pCompanyID
, company.CompanyName
, primary_insuarance_table.ShortName
, primary_insuarance_table.Name
, primary_insuarance_table.pLandInOut_ID
, land_in_out.LandName
, primary_insuarance_table.pNowEnd
, now_end.NowEndName
FROM
backend.primary_insuarance_table
INNER JOIN backend.now_end
ON (primary_insuarance_table.pNowEnd = now_end.NowEndID)
INNER JOIN backend.land_in_out
ON (primary_insuarance_table.pLandInOut_ID = land_in_out.LandinOutID)
INNER JOIN backend.company
ON (primary_insuarance_table.pCompanyID = company.CompanyID)

the recordset in serverbehavior panel disappeared....
and the DAsearch got a "!" next to it ...
i think it must because the recordset is disappeared.....

So , please help me to solve this ...
and i have to do the same change in details.php and delete.php ...

and I will put the original files ....
if more information is needed ...
please tell me....

Attached Files
primaryins_type.zip
Sign in to reply to this post

Jason ByrnesWebAssist

Using an INNER JOIN Should not cause the recordset to disappear. I see no problem with the SQL Statement you have provided.


What happens if you click the test button before clicking the OK Button? Does the SQL test OK.

Sometimes I have seen Recordsets disappear in Dreamweaver for no reason, often saving the page, closing it and reopening it will bring the recordset back into the list.


As for the exclamation mark next to DataAssist Search, the red Exclamation really only means "there *may* be a problem" when Dreamweaver inspects the code, it sees something that is "not quite right". It means the page May run smoothly, or it may not. If it doesn't, the nit's time to worry about the exclamation mark, if it does, ignore it.

Sign in to reply to this post

kakadong

I got the problem OUT !!

NOW, I know what's wrong with it......

when i click the "test" everything goes well but when I click ok .... recordset disappear...

if the recordset disappear.. I can't update the DAsearch.... because the wizard is not reenterable....

So... I try it again....

but this time I find that Dreamweaver make the SQL "Select #@%$^# " into one line but usually for the better understanding ... I will turn my code into several ines.... like
"select
***
***
from
***
*** ; "

that's the problem ....
thistime, I make the SQL code into one line.....
the recordset didn't disappear ....

WOW... Amazing...
SO... I solve it .....

But Still thanks for replying so fast ...

Sign in to reply to this post

Jason ByrnesWebAssist

Hmmm, interesting, I thought that may be linked to the problem, so tested it on a few queries on my end did not have the recordset disappear.

I discounted it as the cause when I couldn't reproduce the problem.

But now we know :)

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...