How to solve this problem (mysql table): What PHP code or MySQL that I need to use (when I delete adminid = 1 from table A, the value of adminid table B should change to 0)
? Is it possible?
Table A has:
adminid = 1
adminname = jack
Table B has:
newsid = 1
adminid = 1
The TableB.adminid
should change to 0
if TableA.adminid = 1
gets deleted.
Thanks!