r != 1) || ($line->t != "value1")) {
echo "error
";
echo "expected: 1 | value1
";
echo "actual: $line->r | $line->t
";
} else {
echo "okay
";
}
break;
case 2:
if (($line->r != 3) || ($line->t != "value3")) {
echo "error
";
echo "expected: 3 | value3
";
echo "actual: $line->r | $line->t
";
} else {
echo "okay
";
}
break;
case 3:
if (($line->r != 4) || ($line->t != "value4")) {
echo "error
";
echo "expected: 4 | value4
";
echo "actual: $line->r | $line->t
";
} else {
echo "okay
";
}
break;
case 4:
if (($line->r != 5) || ($line->t != "value2")) {
echo "error
";
echo "expected: 5 | value2
";
echo "actual: $line->r | $line->t
";
} else {
echo "okay
";
}
break;
}
}
$query = "DROP TABLE $temp_tablename";
mysql_query($query) or die(mysql_error());
?>