I’ve been able to extract all our new subscribers so that they can be billed via a SQL query, but the ’country’ records come out as numbers (indexed against a file on the server that lists a country code for each country).
Is there any way that I can get my SQL query to include the company name? Apologies for the dumb question - I haven’t used SQL since Uni.
-
☆ A M B ☆
- 24,524 Posts
Unfortunately the country field is handled as numbers. You’ll need to use that &country_lang array to switch the output from the number to its associated name in your result set handling.
Yes, I will. That’s the bit I don’t know how to do.
-
☆ A M B ☆
- 24,524 Posts
Include the appropriate country file. Get the country value from the query, and have
$country = $country_lang[$value];
in your code.