Quote
Parse error: syntax error, unexpected '<' in /home/helmuth/joyfulchoir.dk/includes/classes/PHPFusion/Panels.inc(313) : eval()'d code on line 1
<?php
$result = dbquery(
"SELECT user_id as user_id, user_name, user_email, user_phone_mobile, user_phone_home, user_geo
FROM fusion184Ny_users
WHERE user_status = 0"
);
if (dbrows($result)) {
while ($data = dbarray($result)) {
echo "<div class='list-group-item'> ";
echo "Navn: <strong>"; echo $data["user_name"]; echo "</strong><br/> ";
echo "Mail: <strong><i>"; echo $data["user_email"]; echo "</i></strong><br/> ";
echo "Mobil: <strong>"; echo $data["user_phone_mobile"]; echo "</strong><br/> ";
echo "Tlf.: <strong>"; echo $data["user_phone_home"]; echo "</strong><br/>";
echo "Adresse: <strong>"; echo $data["user_geo"]; echo "</strong><br/>";
echo "</div>";
}
} else {
echo "No data in table.";
}
?>
Quote
Adresse: Knudshøjvej 6|Strands|Denmark|Syddjurs|Knebel|8420
Quote
Adresse: Knudshøjvej 6, Strands, 8420 Knebel
$address = $data['address']; // Knudshøjvej 6|Strands|Denmark|Syddjurs|Knebel|8420
$a = explode("|", $address); // it becomes array and it will break into 6 parts
$street1 = $a[0];
$street2 = $a[1];
$country = $a[3];
$region = $a[4];
$city = $a[5];
$zip = $a[6];
echo "$street1, $street2, $city, $region, $country, $zip";
<?php
$result = dbquery(
"SELECT user_id as user_id, user_name, user_email, user_phone_mobile, user_phone_home, user_geo
FROM fusion184Ny_users
WHERE user_status = 0 ORDER BY user_name ASC"
);
if (dbrows($result)) {
while ($data = dbarray($result)) {
echo "<div class='list-group-item'>Navn: <strong> ".$data['user_name']."</strong><br/></div> ";
echo "<div class='list-group-item'>Mail: <strong> ".$data['user_email']."</strong><br/></div> ";
echo "<div class='list-group-item'>Mobil: <strong> ".$data['user_phone_mobile']."</strong><br/></div> ";
echo "<div class='list-group-item'>Tlf.: <strong> ".$data['user_phone_home']."</strong><br/></div> ";
echo "<div class='list-group-item'>Adresse: <strong> ".$data['user_geo']."</strong><br/></div> ";
}
} else {
echo "No data in table.";
}
?>
while ($data = dbarray($result)) {
if (!empty($data['user_geo'])) {
$a = explode("|", $data['user_geo']); // it becomes array and it will break into 6 parts
$street1 = $a[0];
$street2 = $a[1];
$country = $a[3];
$region = $a[4];
$city = $a[5];
$zip = $a[6];
$data['user_geo'] = "$street1, $street2, $city, $region, $country, $zip";
}
echo "<div class='list-group-item'>Navn: <strong> ".$data['user_name']."</strong><br/></div> ";
echo "<div class='list-group-item'>Mail: <strong> ".$data['user_email']."</strong><br/></div> ";
echo "<div class='list-group-item'>Mobil: <strong> ".$data['user_phone_mobile']."</strong><br/></div> ";
echo "<div class='list-group-item'>Tlf.: <strong> ".$data['user_phone_home']."</strong><br/></div> ";
echo "<div class='list-group-item'>Adresse: <strong> ".$data['user_geo']."</strong><br/></div> ";
} else {
Category Forum
Modifications and Requests - 9Labels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions