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: 2983
Discussions: 188,378, Posts: 2,243,448, Members: 232,606
Old February 19th, 2008, 10:10 AM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Feb 2008
Posts: 1
Unhappy
PHP, Mysql and Dreamweaver CS3

Hi,

I am having some trouble; I have four tables in my database:

Project (project_id, title)
Staff (Staff_id, Name)
Access (Access_id, Access Level)
PSA (Project, Staff, Access) - (PSA_id, Project_id, Staff_id, Access_id)

I have created a form using Dreamweaver and I am able to create a connection with the database etc the only problem I am having is inserting a record. There are two tables which need to be updated when the form is submitted - project and psa.

The project table is simple, all that needs to be updated is the title of the project. The issue occurs with the PSA table as this may have 1 record added or up to 20 as there can be different amount of users on each project.

Also the project_id needs to be input in to the PSA table, the problem is that I have set it to autoincrement so there is no field displaying the project_id for the PSA table to pick up. A typical input might be:

project title - testing (id-3)

username - Pam (id-2) Access Level - Tester(id-4)
username - john (id-3) Access Level - Developer (id-5)

so I need the title 'testing' to go in to the project table, two records need to go in to the PSA table:

project id - 3, staff_id - 2, access_id - 4
project id - 3, staff_id - 3, access_id - 5

Any help would be great,

Pam

pam_w is offline   Reply With Quote
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
ranking in php mysql, please help unwanted Webmastering and Programming 18 July 10th, 2007 11:10 PM
Help me with php, and mySQL EXreaction Webmastering and Programming 6 February 13th, 2006 01:00 AM
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
Script Help with MySQL and PHP voogru Webmastering and Programming 5 March 13th, 2002 08:21 AM

Most Active Discussions
Is It Just Me? (2882)
The United States Debt (20)
Looks like Burris will get his Sena.. (7)
I think I just killed my computer w.. (24)
Upgrading RAM (5)
Folderchat Weekday thread (439)
Antec 300 bulk purchase? (11)
Worth the upgrade?? (14)
Titan quest and Immortal Throne, an.. (17)
Recent Discussions
dual monitors wont boot (0)
Folderchat Weekday thread (439)
New Build ( Finally ) (0)
MSN Hotmail Down??? (7)
Help with an Ati Radeon HD 4850.. (23)
Laptop waking up itself (0)
CPU wont boot (3)
Best digital camera for under 2.. (13)
Building first computer, will t.. (2)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 08:10 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