home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 2727
Discussions: 186,607, Posts: 2,227,060, Members: 230,243
Free Scan: Update Your PC's Outdated Drivers to Optimize Performance
Old September 9th, 2008, 06:39 PM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Sep 2008
Posts: 1
php help linking tables - Dreamweaver, phpmyadmin, MAC

I am working on a Mac. I have set up MAMP with phpmyadmin and mysql...

I am new at this but I fairly comfortable with phpmyadmin, and I can set up CRUD via Dreamweaver CS3 for individual table.

But, I have 2 tables that need to be linked...I think. Perhaps not - I don't know really.

I have 2 tables: (`position` is how I am ordering my list - `position_id` is the relationship column for the POSITION table below)

MOVIES TABLE
`id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
`position` INT( 11 ) NOT NULL ,
`section` VARCHAR( 20 ) NOT NULL ,
`date` VARCHAR( 10 ) DEFAULT NULL ,
`heading` VARCHAR( 100 ) CHARACTER SET utf8 DEFAULT NULL ,
`crying_room` VARCHAR( 10 ) DEFAULT NULL ,
`title` VARCHAR( 100 ) CHARACTER SET utf8 DEFAULT NULL ,
`rating` VARCHAR( 5 ) CHARACTER SET utf8 DEFAULT NULL ,
`minutes` INT( 3 ) DEFAULT NULL ,
`times` TEXT CHARACTER SET utf8,
`descShort` TEXT CHARACTER SET utf8,
`descLong` TEXT CHARACTER SET utf8,
`official_site` VARCHAR( 100 ) CHARACTER SET utf8 DEFAULT NULL ,
`image` VARCHAR( 30 ) CHARACTER SET utf8 DEFAULT NULL ,
PRIMARY KEY ( `id` )

POSITION TABLE
`id` INT( 11 ) NOT NULL AUTO_INCREMENT ,
`position_id` INT( 11 ) NOT NULL ,
`position` INT( 11 ) NOT NULL ,
`section` VARCHAR( 20 ) NOT NULL ,
`date` VARCHAR( 10 ) DEFAULT NULL ,
`heading` VARCHAR( 100 ) CHARACTER SET utf8 DEFAULT NULL ,
`crying_room` VARCHAR( 10 ) DEFAULT NULL ,
`title` VARCHAR( 100 ) CHARACTER SET utf8 DEFAULT NULL ,
`rating` VARCHAR( 5 ) CHARACTER SET utf8 DEFAULT NULL ,
`minutes` INT( 3 ) DEFAULT NULL ,
`times` TEXT CHARACTER SET utf8,
`descShort` TEXT CHARACTER SET utf8,
`descLong` TEXT CHARACTER SET utf8,
`official_site` VARCHAR( 100 ) CHARACTER SET utf8 DEFAULT NULL ,
`image` VARCHAR( 30 ) CHARACTER SET utf8 DEFAULT NULL ,
PRIMARY KEY ( `id` )

I would like to know if there is an extension manager for this or the best way to go about this using default tools in Dreamweaver.

But, as mentioned I may not need two tables. This is what I really need.

An admin section that basically has all the CRUD on the same page. I think I will need some JavaScript for this but I am not too good with Java.

First, the set up - I am using the position and section labels in the POSITION table to help me filter data to specific areas on my web site.

The MOVIES table will have an add form so that movies can be added to the table (this is done). This table is only to be used for updating the position table. There will need to be a delete link (which I think I can do) or an archive table which would be handy.

1. I would like to set up a list (master?) of the movies showing 3 columns: position, section, title
2. The position column (repeat region) would have a hover effect with the all detail popping out or expanding below the row
3. The title column (repeat region) would have a drop down list so that the movie and all its data can be moved to another position

Maybe this can be done with one table and the information just moved around.

That's basically it.

Thank you,
Michelle

ellaroc is offline   Reply With Quote
TechIMO.com Ads - Login or register for less ads.
How many errors does your computer have?

You no longer need to guess! This free stability scan and registry cleaner download will give you a complete diagnosis of your Windows registry, identifying errors and conflicts.

FREE instant scan


Guest, Register Free! to remove this ad and get your tech support questions answered in minutes!
Reply


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

Posting Rules
You may post new threads
You may 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
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP, Mysql and Dreamweaver CS3 pam_w Webmastering and Programming 0 February 19th, 2008 10:10 AM
dreamweaver-linking ccltd Webmastering and Programming 2 August 12th, 2005 11:35 AM
Linking Flash Button in Dreamweaver - Frames... HELP PLEASE teresam Applications and Operating Systems 2 September 28th, 2004 02:56 PM
Dreamweaver/PHP/MySQL Help paulknapp Webmastering and Programming 1 June 20th, 2004 02:26 PM
DreamWeaver & PHP help Tazzin Webmastering and Programming 9 May 25th, 2004 02:11 AM

Most Active Discussions
Is It Just Me? (532)
Misery Loves Company... (1849)
Why Does the MOON Grow Bigger as It.. (18)
heatsink issue (10)
New Mobo (18)
UPGRADING C/D DRIVE TO 250GB & .. (14)
1 internet. 1 house. 3 computer. ho.. (13)
SSD's, RAID, and External Backup (7)
Is This A Compatible Gaming PC? (18)
Recent Discussions
Building my first PC and need s.. (2)
32 or 64 bit vista (4)
Big problem with my PC (2)
system restore 'next' button wo.. (2)
firewall (1)
C++ compiler suggestions (4)
Official World of Warcraft Thre.. (4529)
Programming question (2)
UPGRADING C/D DRIVE TO 250GB &a.. (14)
FS: Dell 6000 laptop, modded 36.. (2)
Apple iPod touch 16 GB $200 (4)
Six 28-Disc Cross Design Black .. (4)


All times are GMT -4. The time now is 12:27 PM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28