<?php
require_once 'includes/db.php';
$cols = fetchAll("SELECT TABLE_NAME, COLUMN_NAME, COLUMN_TYPE 
                 FROM information_schema.COLUMNS 
                 WHERE COLUMN_NAME LIKE '%price%' OR COLUMN_NAME LIKE '%amount%'
                 AND TABLE_SCHEMA = DATABASE()");

foreach ($cols as $col) {
    echo "Table: {$col['TABLE_NAME']} | Column: {$col['COLUMN_NAME']} | Type: {$col['COLUMN_TYPE']}\n";
}
