oh now how can i update data simultaneously in 2 tables!!!!!

Codes here !

Moderators: egami, macek, gesf

Post Reply
User avatar
sarjanajava
New php-forum User
New php-forum User
Posts: 39
Joined: Wed Nov 27, 2002 10:59 pm
Contact:

Fri Feb 21, 2003 4:18 pm

i have 2 tables :

student : studentID tinyint(4) PRIMARY KEY
name varchar (50)
and

subject : studentID tinyint(4) PRIMARY KEY
subject varchar (255)

----------------------------------
what should i do. when i insert a value via FORM , studentID can be updated simultaneously is both tables. TQ

Romantik
New php-forum User
New php-forum User
Posts: 67
Joined: Mon Feb 24, 2003 2:55 am
Location: ../Ukraine/Kherson
Contact:

Mon Feb 24, 2003 4:48 am

Have you any AUTO_INCREMENT in your tables?
PHP+MySql= Love :)

User avatar
sarjanajava
New php-forum User
New php-forum User
Posts: 39
Joined: Wed Nov 27, 2002 10:59 pm
Contact:

Thu Feb 27, 2003 7:07 am

yes

Romantik
New php-forum User
New php-forum User
Posts: 67
Joined: Mon Feb 24, 2003 2:55 am
Location: ../Ukraine/Kherson
Contact:

Fri Feb 28, 2003 12:23 am

Hi!
Please, I would like to see your complete structure of this tables
PHP+MySql= Love :)

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests