I need help figuring out how to create a database using db_create
// Path to database
$dbpath = "db/users.dbf";
dbase_create ($dbpath, $def)
// Create the database
$def = array(
array("date", "D"),
array("name", "C", 50),
array("age", "N", 3, 0),
array("email", "C", 128),
array("ismember", "L")
);
if (!dbase_create($dbpath, $def))
print "<strong>Error!</strong>";
i don't know if this code is any good, but i found it from php.net and the site don't realy help much.
All I need to do is create a database with the values I want. Also, explain what those letters and numbers mean to the right of each array and what there used for.
THanks in advance!
// Path to database
$dbpath = "db/users.dbf";
dbase_create ($dbpath, $def)
// Create the database
$def = array(
array("date", "D"),
array("name", "C", 50),
array("age", "N", 3, 0),
array("email", "C", 128),
array("ismember", "L")
);
if (!dbase_create($dbpath, $def))
print "<strong>Error!</strong>";
i don't know if this code is any good, but i found it from php.net and the site don't realy help much.
All I need to do is create a database with the values I want. Also, explain what those letters and numbers mean to the right of each array and what there used for.
THanks in advance!