Location: PHPKode > scripts > Ajax Table Edit > ajax-table-edit/AdvATE/example2data.php
<?php

/* 
	you do not need to run this page seperately, it will create
	the data for you if it doesn't exist.
*/

$data = array();
$data[] = array(
	'name' => "Some Guy",
	'address' => "123 Some Street",
	'phone' => "111-111-1111",
	'phonetype' => "Work",
	'sex' => 'Male'
);
$data[] = array(
	'name' => "Some Girl",
	'address' => "123 Some Drive",
	'phone' => "111-111-2222",
	'phonetype' => "Home",
	'sex' => 'Female'
);
$data[] = array(
	'name' => "Another Some Guy",
	'address' => "123 Another Street",
	'phone' => "111-111-3333",
	'phonetype' => "Cell",
	'sex' => 'Male'
);
$data[] = array(
	'name' => "Another Girl",
	'address' => "123 Some Street, Apt B",
	'phone' => "111-111-4444",
	'phonetype' => "Home",
	'sex' => 'Female'
);
$data[] = array(
	'name' => "Grandma",
	'address' => "123 Old Street",
	'phone' => "111-111-5555",
	'phonetype' => "Home",
	'sex' => 'Female'
);

$example2 = serialize($data);
$open = fopen("test2.txt", 'w');
fwrite($open, $example2);
fclose($open);

?>
Return current item: Ajax Table Edit