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 05-08-2006, 03:21 PM   #1 (permalink)
Junior Member
 
Join Date: 01-19-06
Posts: 7
iTrader: 0 / 0%
Latest Blog:
None

sparkblaze is liked by many
Send a message via MSN to sparkblaze
Database Navigation

Hi,

I'm wondering if I'm able to create a collection of links in a table say...

ID | link
---------
1 | /target/index.html
2 | /folder/spiffle.html

etc

then, add a customised selection to a different table's field as say... 1;3;

explode the field at ';' and then pass it back through the table echoing any matches...?
sparkblaze is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-09-2006, 05:47 AM   #2 (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
All in one SQL sequence?

using what DBMS?
Mrblogs is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-09-2006, 06:39 AM   #3 (permalink)
Junior Member
 
Join Date: 01-19-06
Posts: 7
iTrader: 0 / 0%
Latest Blog:
None

sparkblaze is liked by many
Send a message via MSN to sparkblaze
I'm only really proficient in MySQL and only have access to a MySQL server anyway.

My assumption is that this would be possible, however, I don't really know where I should start or what functions would do it...

I imagine a for/foreach... but don't understand them so it's a little hard to get started on my own
sparkblaze is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-10-2006, 05:05 PM   #4 (permalink)
v7n Mentor
 
Izzmo's Avatar
 
Join Date: 11-01-03
Location: Kansas City
Posts: 1,338
iTrader: 0 / 0%
Latest Blog:
Starting p90x today

Izzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web pro
Send a message via ICQ to Izzmo Send a message via AIM to Izzmo Send a message via MSN to Izzmo Send a message via Yahoo to Izzmo
Are you saying you do not have access to a webserver with PHP to create your own code, or are you saying you need a PHP code to display that information through you SQL DB?

Sorry if I'm confused here, just need to know exactly what you're saying!

Thanks.
__________________
Izzmo
Coding Guru Extraordinaire
ZeroWeb Hosting & Design - Customizable hosting for every type of user!
Izzmo is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-11-2006, 03:27 AM   #5 (permalink)
Junior Member
 
Join Date: 01-19-06
Posts: 7
iTrader: 0 / 0%
Latest Blog:
None

sparkblaze is liked by many
Send a message via MSN to sparkblaze
I've got PHP, got a MySQL database, got the tables set up as in the first post ( but with a `name` field also ).

I just need the code to display the records from the database which match the array...

so I query from a users record a field... and then I have

$mylinks = explode( ';', $result);

Then with each of these... I want to return ONLY the records from the navigation table which match an exploded value from $mylinks...


not very good at explaining this.
sparkblaze is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-11-2006, 04:01 AM   #6 (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
"SELECT LinkIDList from LinkList where ListID=1"

// fetch data back using mysql

$mylinks = str_replace(";",",",$result);

SELECT * FROM Links WHERE ID IN ($mylinks)
Mrblogs is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-11-2006, 08:54 AM   #7 (permalink)
v7n Mentor
 
Izzmo's Avatar
 
Join Date: 11-01-03
Location: Kansas City
Posts: 1,338
iTrader: 0 / 0%
Latest Blog:
Starting p90x today

Izzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web pro
Send a message via ICQ to Izzmo Send a message via AIM to Izzmo Send a message via MSN to Izzmo Send a message via Yahoo to Izzmo
That would work, but you will need to then print the data into your tables. I think you know how to do that though
__________________
Izzmo
Coding Guru Extraordinaire
ZeroWeb Hosting & Design - Customizable hosting for every type of user!
Izzmo 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
site navigation gmypc Web Design Lobby 3 01-15-2007 12:36 PM
v7n navigation Nicolet Forum Lobby 5 12-15-2006 06:02 AM
Navigation Bar - Wanna help to fix? Clorinde Coding Forum 3 11-05-2006 12:09 PM
Cascading Navigation? RingingPHoneML Web Usability 3 06-10-2004 02:58 PM
Navigation DaveyBoy Web Design Lobby 5 12-07-2003 06:34 PM


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


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


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