Topic awaiting preservation: Lots of numbers (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: Juneau, Alaska |
posted 12-28-2004 20:40
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 |
posted 12-29-2004 06:21
Not really sure what you're doing here. code: if ( !isset($subid) || $subid == 0) {
|
Bipolar (III) Inmate From: Juneau, Alaska |
posted 12-29-2004 17:57
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 |
posted 01-05-2005 00:54
TA-DA! code: if ( !isset($subid)) {
|