Ruby on Rails

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsWeb Design & DevelopmentRuby on Rails

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old October 21st, 2004, 05:06 PM
NickToye NickToye is offline
Contributing User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 9 NickToye New User: is a brand new recruit and a unknown entity at this point. 
Time spent in forums: < 1 sec
Reputation Power: 0
Sample Application

Hi,

I am a bit of a newbie here, so please bear with me.

I am trying to develop a sample application for a restaurant. I have two tables in my database:

menuType
menu

menuType has 2 fields

id_type(pk)
title_type

menu has 5 fields

id_menu(pk)
idtype_menu(fk)
title_menu
description_menu
price_menu

Ok, so in Dreamweaver I have managed to display my menu types in the index page:

starters
mains
desserts

In my menu.php page I want to be able to dynamically display the starters or whatever I select from the index.php.

Ok, so far this is working, apart from when I try to dynamically load in the starters etc...

Here is the sql query that I use to define my record set in the menu.php page:

SELECT *
FROM menu INNER JOIN menuType ON idtype_menu = id_type
WHERE idtype_menu = colname

And in the variables box I have:

Name Default Value Run-time Value
colname 1 $_GET['idtype_menu']

Any suggestions to how I can get this to work. If someone is interested in helping me, I can email the files so you can see more clearly what I am getting at.

Many thanks in advance.

Nick

Reply With Quote
Reply

Viewing: Tutorialized ForumsWeb Design & DevelopmentRuby on Rails > Sample Application


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap