Hello...
I am attempting to build a programatically generated UPDATE string for MYSQL.
Using... mysql_num_fields and mysql_field_name... I can get the field names in my row for the field portion of the SET in the UPDATE.
I have the corresponding variable values to set to these fields from another array... but not sure which variable types need ' ' around the variable data or not. I thought about using the mysql_field_type command to find out what the type is... but can't find a definate answer as to what this exactly returns (all google searches say, "string, int, blob, ETC") and again, which types need ' ' or not. Also, not sure how any special field types (dates, etc) need to be processed.
Any help would be greatly appreciated.