From f37829a6e48c69f748c5bf055ceda7d9c866609a Mon Sep 17 00:00:00 2001 From: camping4ever <39275991+camping4ever@users.noreply.github.com> Date: Tue, 19 Jun 2018 17:37:02 +0200 Subject: [PATCH] added trim, fixed wrong row --- segments/_myFriendsBook.php | 42 ++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/segments/_myFriendsBook.php b/segments/_myFriendsBook.php index 6749554..ec65fd2 100644 --- a/segments/_myFriendsBook.php +++ b/segments/_myFriendsBook.php @@ -24,67 +24,67 @@ echo'
'; echo'
'; echo'
' . $row['vorname'] . ' ' . $row['nachname'] . '
'; - if(!empty($row['geburtstag'])){ + if(!empty(trim($row['geburtstag']))){ echo'

Geburtstag: ' . $row['geburtstag'] . '

'; } - if(!empty($row['wohnort'])){ + if(!empty(trim($row['wohnort']))){ echo'

Wohnort: ' . $row['wohnort'] . '

'; } - if(!empty($row['strasse'])){ + if(!empty(trim($row['strasse']))){ echo'

Straße: ' . $row['strasse'] . '

'; } - if(!empty($row['kennenUns'])){ + if(!empty(trim($row['kennenUns']))){ echo'

Woher kennen wir uns? ' . $row['kennenUns'] . '

'; } - if(!empty($row['festnetz'])){ + if(!empty(trim($row['festnetz']))){ echo'

Festnetz: ' . $row['festnetz'] . '

'; } - if(!empty($row['handynummer'])){ + if(!empty(trim($row['handynummer']))){ echo'

Handynummer: ' . $row['handynummer'] . '

'; } - if(!empty($row['email'])){ + if(!empty(trim($row['email']))){ echo'

E-Mail: ' . $row['email'] . '

'; } - if(!empty($row['hobbies'])){ + if(!empty(trim($row['hobbies']))){ echo'

Hobbies: ' . $row['hobbies'] . '

'; } - if(!empty($row['berufswunsch'])){ + if(!empty(trim($row['berufswunsch']))){ echo'

Berufswunsch: ' . $row['berufswunsch'] . '

'; } - if(!empty($row['essen'])){ + if(!empty(trim($row['essen']))){ echo'

Das könnte ich jeden Tag essen: ' . $row['essen'] . '

'; } - if(!empty($row['insel'])){ + if(!empty(trim($row['insel']))){ echo'

Was ich auf eine Insel mitnehmen würde: ' . $row['insel'] . '

'; } - if(!empty($row['film'])){ + if(!empty(trim($row['film']))){ echo'

Lieblingsfilm: ' . $row['film'] . '

'; } - if(!empty($row['sport'])){ + if(!empty(trim($row['sport']))){ echo'

Lieblingssport: ' . $row['sport'] . '

'; } - if(!empty($row['charakter'])){ + if(!empty(trim($row['charakter']))){ echo'

Coolster Film oder Spielecharakter: ' . $row['charakter'] . '

'; } - if(!empty($row['tier'])){ + if(!empty(trim($row['tier']))){ echo'

Mein Lieblingstier: ' . $row['tier'] . '

'; } - if(!empty($row['musik'])){ + if(!empty(trim($row['musik']))){ echo'

Lieblingsmusik: ' . $row['musik'] . '

'; } - if(!empty($row['game'])){ + if(!empty(trim($row['game']))){ echo'

Geilstes Game: ' . $row['game'] . '

'; } - if(!empty($row['story'])){ + if(!empty(trim($row['alk']))){ echo'

Lieblings alkoholisches Getränk: ' . $row['alk'] . '

'; } - if(!empty($row['geburtstag'])){ + if(!empty(trim($row['story']))){ echo'

Meine heftigeste Suffstory: ' . $row['story'] . '

'; } - if(!empty($row['absturz'])){ + if(!empty(trim($row['absturz']))){ echo'

Letzter Absturz: ' . $row['absturz'] . '

'; } - if(!empty($row['trinkspiel'])){ + if(!empty(trim($row['trinkspiel']))){ echo'

Lieblings Trinkspiel: ' . $row['trinkspiel'] . '

'; }