Jump to content

*solved* Echo list of currencies plus the number of these from a table.


brown2005

Recommended Posts

you will have to make it relational in order to reference one to the other.

add a field in the adverts table to reference the currency table

adverts

adverts_id
curr_id
adverts_currency

now you can query one based on the other

[code]$sql = "SELECT * FROM currency LEFT JOIN adverts ON currency_id = curr_id";[/code]

Ray

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.