if($region==region){
$result = mysql_query("SELECT * FROM places");
$row = mysql_fetch_assoc($result);
echo "zone: ".$row['zone'].";
}
heni_pro 0 Newbie Poster
Recommended Answers
Jump to PostWhat are you trying to do?
if($region==region){
should probably be
if($region=="region"){
or
if($region==$region){
who knows..
Jump to PostSo you want the query to run if a selection is made?
if(isset($region)){ $result = mysql_query("SELECT * FROM places"); $row = mysql_fetch_assoc($result); echo "zone: ".$row['zone'].""; }
All 5 Replies
buddylee17 216 Practically a Master Poster
heni_pro 0 Newbie Poster
Shanti C 106 Posting Virtuoso
buddylee17 216 Practically a Master Poster
Lejonet 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.