PDO::ERRMODE_EXCEPTION, PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, ]); } catch (PDOException $e) { // Connection failed return '

Database connection error.

'; } try { $stmt = $pdo->query($sql); } catch (PDOException $e) { // Query error return '

Query error.

'; } $rows = $stmt->fetchAll(); if (empty($rows)) { return '

No results.

'; } // Get column names from first row $columns = array_keys($rows[0]); // Start building HTML table $html = '' . PHP_EOL; // Header row $html .= ' '; foreach ($columns as $col) { $html .= ''; } $html .= '' . PHP_EOL; // Data rows foreach ($rows as $row) { $html .= ' '; foreach ($columns as $col) { $value = $row[$col]; $html .= ''; } $html .= '' . PHP_EOL; } $html .= '
' . htmlspecialchars($col, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8') . '
' . htmlspecialchars((string)$value, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8') . '
' . PHP_EOL; return $html; } // Exam //echo echoTable("SELECT * FROM userspositions LIMIT 10");

Estonia
(26)
Vedic
(49)
Astrology and Numerology
(28)
Companies
(14)
Computers
(17)
Music
(6)
Foods
(9)
Science
(4)
Principles
(23)
Astronomy
(7)
Satanic
(11)
Religion
(34)
Money, business
(14)
Sport
(9)
Love and Sex
(10)
Wisdom
(11)
The Nine Muses
(9)
Latin
(31)
Bands
(24)
Space, astronauts
(19)
Humor
(16)
Colors
(8)
War and Peace
(7)
Death
(2)
Organisations
(61)
Astronomy orgs
(75)
Observatories
(78)
Universities
(18)
Tribes
(19)
Film and TV
(8)
Legendary persons
(194)
Planes and Flying
(8)

Peoples Names

(17944)

Singers
(34)
Composers
(92)
Actors
(32)
Writers
(51)
Physicists
(15)
Astronomers
(107)
Philosophers
(15)
Real persons
(143)
Historical persons
(285)
Poets
(19)
Royals
(23)
Artists
(11)
Japanese
(1657)
Chinese
(262)
Finnish
(83)
Hungarian
(136)
Czech
(489)
Russian
(442)
Italian
(371)
Lithuanian
(35)
Ukrainian
(34)
FF
(263)
Denmark
(29)
Slovakian
(28)
Thai
(20)
empty
(0)
(188)
Shortened names
(167)
Nicknames
(105)
Russian Full Names
(6)
Slavic Names
(28)
Arabic etc
(24)
Indian
(17)
(0)
(14)
(92)
Nicknames2
(30)
Full Names
(2875)
Western Family Names
(4319)
Long names
(2725)
(953)
Family names
(731)
First names
(595)
Unsorted
(398)

Miscelanneous


::
(288)
::
(11)
::
(54)
::
(184)

Mythology (456)


Greek and Roman Mythology
(279)
Finnish Mythology
(16)
Indian Mythology
(11)
Asian Mythology
(6)
Egipt Mythology
(17)
Middle-east Mythology
(13)
African Mythology
(3)
Japanese Mythology
(12)
Other mythologies
(19)
Slavian Mythology
(15)
German and Celtic Mythology
(65)

Geographical Names


Countries
(87)
Cities
(636)
Towns
(122)
Provinces
(44)
Parishes
(25)
Villages
(94)
Lakes, rivers, seas
(81)
Other Geographical
(129)
Castles
(8)
Mountains
(127)
Islands
(44)
Geographical
(307)
Rivers
(39)

Nature


Birds
(27)
Nature
(8)
Flowers, plants
(68)
Nature2
(125)

Astronomical Categories

Amor
(186)
Trojans
(914)
Apollo
(181)
Centaurs
(32)
Atens
(24)
Cubewano
(38)
Plutino
(23)
TNO
(1)
SDO
(20)
(163)