close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Multiple listings sort by primary key

Thread began 2/14/2011 7:57 pm by johnfrancis227818 | Last modified 2/18/2011 4:36 pm by johnfrancis227818 | 2608 views | 7 replies

johnfrancis227818

Originally Said By: Jason Byrnes
  Ok, so you have a users table and an address table?

How are you relating the address to the user?

there should be a column in the address table that creates a relationship to the user that the address belongs to, you would need to create a joined query using this relational column and add the where clause using ckey query sting variable.


See the following page for details on creating a join query to get related information from 2 tables:
sql_join.asp  



Thanks for the link, but it won't help. My issue is more complex than what w3 can do and less difficult than what is really happening. Once again, please look at my code that I pasted in the first post. The CKEY is the customer listing. The address comes from the "contact" table, so, both the address and the listing info is already on this page. How do I change the map code so that it's picking up the CKEY

do I need to put WHERE CKEY= "the CKEY already connected to their record"
this is already defined on my page that I want to display the map by member:
$url = INSTALLPATH . "fullpage.php?ckey=" . $ckey;



////////////////////////////////////////////
$AddressSet = mysql_query($query_AddressSet, $mappie) or die(mysql_error());
$row_AddressSet = mysql_fetch_assoc($AddressSet);
$totalRows_AddressSet = mysql_num_rows($AddressSet);
?>



ACTUALLY JOIN will not work. This is a session parameter based on the url.

I have to pick up the URL CKEY=36 and have that affect the map. Joining will just give me the same map over and over again since it's a preset query.

So, how do I get my map to show the address that is based on the CKEY already set in the PHP?

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...