/    Sign up×
Community /Pin to ProfileBookmark

Call several data at same php variable

Hi

Example:
To call data at MySQL db under a specific country, i do:

if ($tl==”country”) $sql_base=”select * from prime where country=’Portugal’ and situation=1 order by $ord $ord2″;

then:

if ($tl==”country”) $country=”Portugal”;

and so on for all countries

But how to call all data from all countries at once?

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@CrazyGazDec 03.2006 — <i>
</i>$sql_base="SELECT * FROM prime WHERE (country='Portugal' OR country='Spain') AND situation=1 order by $ord $ord2";


Something like that will work.
Copy linkTweet thisAlerts:
@JoseSilvaauthorDec 03.2006 — <i>
</i>$sql_base="SELECT * FROM prime WHERE (country='Portugal' OR country='Spain') AND situation=1 order by $ord $ord2";


Something like that will work.[/QUOTE]



Thanks buddy.

It worked.
×

Success!

Help @JoseSilva spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...