PHP Classes

File: exercise/milkco/Cities.php

Recommend this page to a friend!
  Packages of Jorge Castro   Chaos Machine One   exercise/milkco/Cities.php   Download  
File: exercise/milkco/Cities.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Chaos Machine One
Generate random data that obeys to formulas
Author: By
Last change:
Date: 8 months ago
Size: 311 bytes
 

Contents

Class file image Download
<?php
use eftec\chaosmachineone\ChaosMachineOne;
include_once
'common.php';

var_dump($db->from('Cities')->count());

if(
$db->from('Cities')->count()>0) {
    echo
"table cities skipped<br>";
} else {
    foreach(
$cities as $city) {
       
$db->insert('cities',$city);
    }
    echo
"inserting cities<br>";
}