Hi,
I have this:
$arr_values[ 'name' ] = 'Nononono';
$arr_values[ email' ] = 'Nononono';
I need this now:
"name = 'Nononono', email = 'Nononono'"
But not using FOREACH.
Using IMPLODE or something like that.
Example:
$str_sql = "INSERT INTO my_table ( " . implode( array_keys( ', ', $arr_values ) ) . " ) VALUES ( '" . implode( "', '", $arr_values ) . "' )";
Then I need the same to UPDATE and DELETE.
Thanks for your help.