import

Create a Node from a another Mysql DB Data

  1. <?php
  2. //exec("/usr/bin/clear");
  3. include_once('includes/bootstrap.inc');
  4. ini_set('memory_limit', '512M');

add 'property' cck node using drupal_execute (d6)

  1. function mymodule_import() {
  2.     // get the old data
  3.     $old_db = mysql_connect("host", "user", "pass") or die('Could not connect to mysql server.' );
Syndicate content