This is an error 404
There are `0` results
preferences:
148.87 ms | 1399 KiB | 7 Q<?php
$d = array(
array(
"id", "int(10) unsigned", "NO", "PRI", "auto_increment"
), array(
"title", "varchar(32)", "NO"
), array(
"author", "varchar(32)", "NO"
), array(
"category", "tinyint(3) unsigned", "NO"
), array(
"date", "datetime", "NO"
), array(
"post_ip", "int(10) unsigned", "NO"
), array(
"approved_by", "varchar(32)", "NO"
), array(
"text", "text", "NO"
)
);
$cols = array();
foreach ($d as $row) {
$id = 0;
foreach($row as $col) {
if (!isset($cols[$id])) $cols[$id] = 0;
if ($cols[$id] < strlen($col)) {
$cols[$id] = strlen($col);
}
$id++;
}
}
print_R($cols);
/*
id # int(10) unsigned # NO # PRI # auto_increment #
[19:44] <teehee> title # varchar(32) # NO #
[19:44] <teehee> author # varchar(32) # NO #
[19:44] <teehee> category # tinyint(3) unsigned # NO #
[19:44] <teehee> date # datetime # NO #
[19:44] <teehee> post_ip # int(10) unsigned # NO #
[19:44] <teehee> approved_by # varchar(32) # YES #
[19:44] <teehee> text # text # NO #