hey all,
i looked through all the arrays into table posts and no luck with my particular problem....
i know it has something to do with indexes (of which i have none assigned)....i have no mysql errors either but let me explain whats going on.
i have a standard table, 15 columns, varchar(x), myisam, latin1_swedish_ci.........
all i want to do is calculate some values from 2 of the columns and return the values back into either a new column in a new table, or a blank column in the same table that will line up with all the existing records etc...
whats happening:
the data is currently going back into the SAME table in a blank column - however the values don't line up with the rest of the records......for example, there are 179 rows right now, after i run the query it doubles to 358 rows.....the added 179 rows are all blank aside from the one column thats full of my calculated values.
so if at any time i add an index of any type (primary key, unique) i get the error:
Duplicate entry '' for key 1
here is my php thats generating my query:
$sql = "INSERT INTO test_targets (mutot)
VALUES ('{$test[$i]}')";
mysql_query($sql) or die("query failed".mysql_error());
test_targets = table
mutot = blank column in test_targets i need to fill
$test = array full of calculated values
thanks!