私のPHP Webでは、列数が異なる異なるテーブルに3つのコンテンツタイプが保存されています
例えば:
Type 1 (X columns) (example: table_products)
Type 2 (Y columns) (example: table_customers)
Type 3 (Z columns) (example: table_posts)
同じ Select 内の各タイプを検索し、最終的にすべての結果を表示する検索システムを作成しています。
例:
I search: foo
System searchs on: Type 1, type 2 and type 3 "foo" and shows:
- Product foo1
- Product foo2
- Customer foo1
- Customer foo2
- Customer foo3
- Post foo1
(It's only an example)
これで、各タイプに対してクエリを作成するための 3 つの異なる関数ができましたが、ページ分割できないため、これは好きではありません。
一度に 3 つのテーブルを検索するクエリを作成する必要があります。
ありがとうございました