Subversion Repositories ALCASAR

Rev

Rev 1882 | Rev 2010 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1882 Rev 1884
Line 88... Line 88...
88
	
88
	
89
					if (!$res || !da_sql_affected_rows($link,$res,$config))
89
					if (!$res || !da_sql_affected_rows($link,$res,$config))
90
						echo "<b>Change failed for attribute $key: " . da_sql_error($link,$config) . "</b><br>\n";
90
						echo "<b>Change failed for attribute $key: " . da_sql_error($link,$config) . "</b><br>\n";
91
				}
91
				}
92
				else{
92
				else{
-
 
93
					if($val != ''){
93
					$res = da_sql_query($link,$config,
94
						$res = da_sql_query($link,$config,
94
					"INSERT INTO $table ($query_key,attribute,value $text2)
95
						"INSERT INTO $table ($query_key,attribute,value $text2)
95
					VALUES ('$login','$sql_attr','$val' $op_val2);");
96
						VALUES ('$login','$sql_attr','$val' $op_val2);");
96
				if (!$res || !da_sql_affected_rows($link,$res,$config))
97
					if (!$res || !da_sql_affected_rows($link,$res,$config))
97
					echo "<b>Change failed for attribute $key: " . da_sql_error($link,$config) . "</b><br>\n";
98
						echo "<b>Change failed for attribute $key: " . da_sql_error($link,$config) . "</b><br>\n";
-
 
99
					}
98
				}
100
				}
99
			}
101
			}
100
		}
102
		}
101
	}
103
	}
102
}
104
}