Help for this page

Select Code to Download


  1. or download this
    for $t (0 .. 1000) {
         $table_name = $tables[$t];
    ...
         $std = $dbh->prepare($sql) or die("Could not prepare! At table = 
    +$table_name because " . $dbh->errstr);
         $std->execute() or die("Could not execute!" . $dbh->errstr);
    }
    
  2. or download this
    $sql = "INSERT INTO ? VALUES (?)";
    $std = $dbh->prepare($sql) or die("Could not prepare! At table = $tabl
    +e_name because " . $dbh->errstr);
    ...
         $theValue = $values[$t];
    $std->execute($table_name , $theValue) or die("Could not execute!" . $
    +dbh->errstr);
    }