Welcome Guest, Not a member yet? Register   Sign In
Active Record or SQL Question
#2

[eluser]GSV Sleeper Service[/eluser]
I'm not sure if you can even do multiple inserts using Active Record, the docs don't mention anything about it.
I do like your implode method though, I can't believe I never thought of that before. I always used to do something like
Code:
$sep = "";
$sql = "";
foreach($thing as $k => $v){
    $sql.= $sep."('".$k."','".$v."')";
    $sep = ",";
}


Messages In This Thread
Active Record or SQL Question - by El Forum - 10-24-2008, 08:17 AM
Active Record or SQL Question - by El Forum - 10-24-2008, 08:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB