This topic is locked

List Records

10/11/2007 3:13:18 PM
PHPRunner General questions
B
barbary author

Hi,

Is there a way to list records from two different tables in one page??
BR,

Mahmoud

A
alang 10/11/2007

On the "Edit SQL query" page, write your own SQL statement taking whatever fields you want from different tables.
Following example takes records from "orders" and "customers"
SELECT

orders.ID,

orders.OrderNumber,

orders.Customer,

customers.CustomerName,

customers.Address,

customers.City

FROM orders

INNER JOIN customers

ON orders.Customer = customers.ID