| | |
Select matching records
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Sep 2007
Posts: 3
Reputation:
Solved Threads: 0
Hi,
I just joined this community and inspired by roaming in it. However, I would like to discuss a problem - I'm having.
I'm developing an application for property management. I've a table with some general columns as well as some specific. For example;
General: [Buy OR Sell] , [Plot no.] , [City]
Specific: [Phase] , [Block] , [Measuring]
Specific fields mean, some property have them and some don't. For example; property 1 has PHASE and BLOCK. While property 2 has only Measuring.
Now, I wanna make a page where all entries for BUY properties - that match with SELL properties, should be listed.
I don't wanna use DISTINCT function of SQL because BUY property may have blank field.
I know, I gonna have an answer for my question by Dani Pros. Thanks in advance.
I just joined this community and inspired by roaming in it. However, I would like to discuss a problem - I'm having.
I'm developing an application for property management. I've a table with some general columns as well as some specific. For example;
General: [Buy OR Sell] , [Plot no.] , [City]
Specific: [Phase] , [Block] , [Measuring]
Specific fields mean, some property have them and some don't. For example; property 1 has PHASE and BLOCK. While property 2 has only Measuring.
Now, I wanna make a page where all entries for BUY properties - that match with SELL properties, should be listed.
I don't wanna use DISTINCT function of SQL because BUY property may have blank field.
I know, I gonna have an answer for my question by Dani Pros. Thanks in advance.
Last edited by frazehmad; Sep 20th, 2007 at 12:19 am.
Fraz Ahmed
XenialStudio.com
XenialStudio.com
•
•
Join Date: Sep 2007
Posts: 11
Reputation:
Solved Threads: 1
Are buyers going to be 'searching' for properties by entering criteria? Then you want to return the properties for sale that match that criteria?
•
•
Join Date: Sep 2007
Posts: 3
Reputation:
Solved Threads: 0
No, its application for Property Agency. So people will come who are in need of property and they will insert BUY property in database. So there will be a page where all the matches of SELL and BUY property will be displayed.
Fraz Ahmed
XenialStudio.com
XenialStudio.com
•
•
Join Date: Sep 2007
Posts: 3
Reputation:
Solved Threads: 0
Finally I completed application. Actually whatever I wanted was many-to-many relationship which is not possible in real world. So I changed it in one-to-many relationship.
What I did is when we insert a property for BUY purpose, I use all POST Variables in SESSION Variables and when Thank You page comes I used all the SESSION Variables to generate a QUERY for searching all the matching records and PULL them out from a database.
What I did is when we insert a property for BUY purpose, I use all POST Variables in SESSION Variables and when Thank You page comes I used all the SESSION Variables to generate a QUERY for searching all the matching records and PULL them out from a database.
Fraz Ahmed
XenialStudio.com
XenialStudio.com
![]() |
Similar Threads
- updating records using php and mysql (PHP)
- Need Help with ASP (ASP)
- Matching records from a query to a table records (MS Access and FileMaker Pro)
- Matching records from a query to a table records (Windows Software)
- Cannot modify header information.Headers already sent (PHP)
- display results of search from drop down menu (PHP)
- Displaying a certain number of records (MS SQL)
- Displaying records (C++)
- Create Windows Authentication (VB.NET)
Other Threads in the PHP Forum
- Previous Thread: help
- Next Thread: php mySQL Problem
| Thread Tools | Search this Thread |
# 5.2.10 alexa apache api array beginner binary broken cakephp checkbox class clean clients cms code cron curl database date directory display dissertation dropdown dynamic echo echo$_get[x]changingitintovariable... email encode error fairness file files folder form forms function functions google href htaccess html image images include indentedsubcategory insert ip javascript joomla legislation limit link local login mail memberships menu mlm multiple multipletables mysql mysqlquery newsletters oop open paypal pdf persist php problem provider query radio random recursion remote rss script search server sessions sms sockets source space spam sql syntax system table tutorial update upload url validator variable video web youtube





