![]() Topic awaiting preservation: Lots of numbers (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Juneau, Alaska |
![]() I'm attempting to track and modify two sets of numbers in a table with PHP. The first is id, and the second is subid. code: if ( !isset($subid)) {
|
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() Not really sure what you're doing here. code: if ( !isset($subid) || $subid == 0) {
|
Bipolar (III) Inmate From: Juneau, Alaska |
![]() Thanks. I'm not very familiar with database operations in PHP, so this has been a big help. Thanks again. code: $Query = "UPDATE $tablename set subid='$id'";
code: $Query = "UPDATE $tablename where(id='$id') (subid) values ('$id')";
code: if (mysql_db_query($dbname, $Query, $Link)) {
|
Bipolar (III) Inmate From: Juneau, Alaska |
![]() TA-DA! code: if ( !isset($subid)) {
|