Jump to content

Table values...


john666

Recommended Posts

i have two tables 1. login and 2nd staff_record

both have coulmns like  login_id  and staff_id

 

i did not mention AUTO INCREAMENT value in login but defined AUTO INCREAMENT in staff_record

 

i want that staff_record  AUTO increament value i assign to login_id column value during code execution is it possible ????

because i have columns  in login

login_id ,user_name, pass_word ,user_level.........and in staff_Record there is emp_id emp_dept_id,emp_name, emp_username, emp_password, emp_level and emp_cnic .... now i want if i update or DELETE record from staff table staff record like user_name and password and user_level that i puted in login table should be updated or delete..PK AND FK concept but i want make this relation through Code is it possible if is then how????

Link to comment
https://forums.phpfreaks.com/topic/285517-table-values/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.