$query2 = sprintf("insert into parent values(null,'$parent_first_name','$parent_last_name','%s')", mysql_real_escape_string($parent_first_name,$parent_last_name,$mysql_link));
I am getting this error:Column count doesn't match value count at row 1
this my var_dump of $query2: "insert into parent values(null,'ishmael','reed','')"
parent table has 3 fields: parent_id, parent_first_name, parent_last_name
also, what is this doing? I thought it was to check for control characters? whey then is it only using $notes? and what does the $mysql_link do here?
mysql_real_escape_string($notes, $mysql_link));
I am getting this error:Column count doesn't match value count at row 1
this my var_dump of $query2: "insert into parent values(null,'ishmael','reed','')"
parent table has 3 fields: parent_id, parent_first_name, parent_last_name
also, what is this doing? I thought it was to check for control characters? whey then is it only using $notes? and what does the $mysql_link do here?
mysql_real_escape_string($notes, $mysql_link));