Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 08-10-2006, 02:54 AM   #1 (permalink)
Junior Member
 
Join Date: 08-10-06
Posts: 2
iTrader: 0 / 0%
Latest Blog:
None

ost87 is liked by many
Tell database records it can display?

Hi Everyone

This supremeley difficult, or am I wrong?

I have a CMS system with several different components (such as business directory, classifieds system and forum) , all of which are calling for information from the database.

I would like to introduce some kind of code that would be linked up to a popup list. Based on the selection in the popup list, some records in the database would be made unavailable to the site.

I would like to achieve this functionality without modifying any of the components or programming for any of the different components, I just want to add code.

So, basically what I’m looking for is a piece of code that tells the database what records can be made available ( or unavailable ) to the site. This should be irrespective of the content and programming of the site.

I’ve attached an image of this functionality, which should give you the conceptual view.

I really hope that somebody knows how to murder this problem.
Attached Thumbnails
Tell database records it can display?-conceptual-overview-4.jpg  
ost87 is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-10-2006, 07:19 AM   #2 (permalink)
Senior Member
 
littleFella's Avatar
 
Join Date: 06-20-04
Location: Ontario
Posts: 1,758
iTrader: 0 / 0%
Latest Blog:
None

littleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to beholdlittleFella is a splendid one to behold
There is no info about any of the existing code or table structure of relevant records, so I doubt anybody would be in a position to offer a solution that would work for sure.

Even if you show what you already have, you mays still need to modify some code. Some marvelous stuff can be done in code, but if you have a substantial body of code in place then don't expect miracles - some of the stuff will have to be changed.
littleFella is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-10-2006, 08:12 AM   #3 (permalink)
Senior Member
 
Mrblogs's Avatar
 
Join Date: 03-29-06
Posts: 395
iTrader: 0 / 0%
Latest Blog:
None

Mrblogs is just really niceMrblogs is just really niceMrblogs is just really niceMrblogs is just really niceMrblogs is just really niceMrblogs is just really niceMrblogs is just really niceMrblogs is just really niceMrblogs is just really niceMrblogs is just really niceMrblogs is just really nice
Send a message via MSN to Mrblogs Send a message via Yahoo to Mrblogs
Well you would need to add a field to the tables, such as "Visible", and then your pop-up list would set visibles to 0 or 1 depending on what you select.

Finally, you would need to modify the SELECT statements to include the "WHERE Visible=1" into the statements
Mrblogs is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-10-2006, 08:17 AM   #4 (permalink)
Junior Member
 
Join Date: 08-10-06
Posts: 2
iTrader: 0 / 0%
Latest Blog:
None

ost87 is liked by many
Hi Littlefella and thanks for your response.

I agree that the information I have provided is not sufficient enoguh so that any one could provide a solution for my site specifically.

The problem is, as I see it, very complex and not easy to explain.

I think this problem will need a miracle, maybe there some genius out there.


But let me put it like this;
what I want is a piece of code that tells the database which records can be made available to the site.
This should be independent of the components. The components behave in the same way, only the amount records that are available is a subset.

In practice it's like deleting records from database, so the result is a subset, only the records are not deleted, only hidden in some way.


I think it's possible, if my explanation is clear enough (which I doubt, it took me a couple of days to get my dad to understand), for users to provide a general solution or give some kind of indication how to do it.

thanks for your help, I do believe in miracles( even when my dad is concerned)
ost87 is offline  
Add Post to del.icio.us
Reply With Quote
Old 08-10-2006, 08:22 AM   #5 (permalink)
Senior Member
 
Mrblogs's Avatar
 
Join Date: 03-29-06
Posts: 395
iTrader: 0 / 0%
Latest Blog:
None

Mrblogs is just really niceMrblogs is just really niceMrblogs is just really niceMrblogs is just really niceMrblogs is just really niceMrblogs is just really niceMrblogs is just really niceMrblogs is just really niceMrblogs is just really niceMrblogs is just really niceMrblogs is just really nice
Send a message via MSN to Mrblogs Send a message via Yahoo to Mrblogs
Instead of adding fields to the database then,

create a table with "Field ID", "TypeofField" and then a Visible tag.

Field ID will be the ID of the row in the particular table, that TypeOfField will decide. VIsible then will link to that.

It will still require a modification of the SQL on the site however to link in "where fieldID=table.ID and TypeofField=1 and visible=1"

etc
Mrblogs is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 04:25 PM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.