not sure if these are necessary... we'll see

This commit is contained in:
Dan Olson 2000-06-16 19:40:31 +00:00
parent 2cdc1eaa19
commit 805f78b6e1
2 changed files with 8 additions and 8 deletions

View file

@ -36,10 +36,10 @@
}
$query2 = 'INSERT into devel_plans (p_user, p_date, p_plan) VALUES (' .
"'$u_username', NOW(), 'None')";
$result = mysql_db_query (sqlDB, $query2, $conn);
if ($result) {
$numRows = mysql_affected_rows ($conn);
if ($numRows) {
$result2 = mysql_db_query (sqlDB, $query2, $conn);
if ($result2) {
$numRows2 = mysql_affected_rows ($conn);
if ($numRows2) {
echo '<P>User added to plan dbase successfully.';
} else {
echo '<P>There was an error in your input. The error was ' . mysql_error ($conn);

View file

@ -26,10 +26,10 @@
echo '<P>There was an error in your input. The error was ' . mysql_error ($conn);
}
$query2 = "DELETE FROM devel_plans WHERE p_user = '$p_username'";
$result = mysql_db_query (sqlDB, $query2, $conn);
if ($result) {
$numRows = mysql_affected_rows ($conn);
if ($numRows) {
$result2 = mysql_db_query (sqlDB, $query2, $conn);
if ($result2) {
$numRows2 = mysql_affected_rows ($conn);
if ($numRows2) {
echo '<P>User removed from plan dbase successfully.';
echo '<P>This webpage will self-destruct in 30 seconds.';
} else {