Skip to content

Instantly share code, notes, and snippets.

@MissAllSunday
Created November 27, 2013 16:57
Show Gist options
  • Save MissAllSunday/7679175 to your computer and use it in GitHub Desktop.
Save MissAllSunday/7679175 to your computer and use it in GitHub Desktop.
<?php
foreach ($array as $var => $val)
$inserts[] = array($userID, $var, $val);
if (!empty($inserts))
$this->_smcFunc['db_insert']('replace',
'{db_prefix}' . ($this->_tables['options']['table']),
array('member_id' => 'int', 'variable' => 'string-255', 'value' => 'string-65534'),
$inserts,
array('member_id')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment