Many posts similar to mine,none of them work.
Have an array $data['date'], $data['name'], $data['value']
.
Trying to insert into MySQL table MyValues (Date, Name, Value)
Have tried 7-8 different methods, none working. Would like something like
for ($a=0;$a<10;$a++) {
mysql_query("INSERT INTO MyValues('Date','Index_Name','Index')
VALUES ($data['date'][$a] ,$data['name'][$a], $data['value'][$a])"
}
Have also tried foreach, building a single string to give to MySQL, etc.
Get this error Warning: mysql_error() expects parameter 1 to be resource, boolean given on line 45