2017-05-01 4 views
-2
811.<div style="position:absolute; left:15.5%; top:108%;"> <img src="../../fb_users/<?php echo $gender; ?>/<?php echo $user; ?>/Profile/<?php echo $img_array[0] ?>" height="90" width="78"> </div> 
812.<div style="position:absolute; left:22%; top:108%;"> <img src="../../fb_users/<?php echo $gender; ?>/<?php echo $user; ?>/Post/<?php echo $img_array[1] ?>" height="90" width="78"> </div> 
813.<div style="position:absolute; left:28.5%; top:108%;"> <img src="../../fb_users/<?php echo $gender; ?>/<?php echo $user; ?>/Post/<?php echo $img_array[2] ?>" height="90" width="78"> </div> 
814.<div style="position:absolute; left:15.5%; top:125%;"> <img src="../../fb_users/<?php echo $gender; ?>/<?php echo $user; ?>/Post/<?php echo $img_array[3] ?>" height="90" width="78"> </div> 
815.<div style="position:absolute; left:22%; top:125%;"> <img src="../../fb_users/<?php echo $gender; ?>/<?php echo $user; ?>/Post/<?php echo $img_array[4] ?>" height="90" width="78"> </div> 
816.<div style="position:absolute; left:28.5%; top:125%;"> <img src="../../fb_users/<?php echo $gender; ?>/<?php echo $user; ?>/Post/<?php echo $img_array[5] ?>" height="90" width="78"> </div> 
817.<div style="position:absolute; left:15.5%; top:142%;"> <img src="../../fb_users/<?php echo $gender; ?>/<?php echo $user; ?>/Post/<?php echo $img_array[6] ?>" height="90" width="78"> </div> 
818.<div style="position:absolute; left:22%; top:142%;"> <img src="../../fb_users/<?php echo $gender; ?>/<?php echo $user; ?>/Post/<?php echo $img_array[7] ?>" height="90" width="78"> </div> 
819.<div style="position:absolute; left:28.5%; top:142%;"> <img src="../../fb_users/<?php echo $gender; ?>/<?php echo $user; ?>/Post/<?php echo $img_array[8] ?>" height="90" width="78"> </div> 

Errors:
Hinweis (!): Undefiniert offset: 3 in C: \ wamp64 \ www \ peppal \ fb_files \ fb_profile \ profile.php on line 814 Call Stack #TimeMemoryFunctionLocation 10,0017384336 {main}() ... \ profile.php: 0 "height =" 90" width = "78">Hinweis: Undefiniert offset: 3,4,5,6,7,8

Hinweis (!): Undefinierter Offset: 4 in C: \ wamp64 \ www \ peppal \ fb_files \ fb_profile \ Profile.php in Zeile 815 Call Stack #TimeMemoryFunctionLocation 10.0017384336 {main}() ... \ Profile.php: 0 "height =" 90 "Breite = "78">

(!) Hinweis: Undefinierter Offset: 5 in C: \ wamp64 \ www \ peppal \ fb_files \ fb_profile \ Profile.php in Zeile 816 Call Stack #TimeMemoryFunctionLocation 10.0017384336 {main}() ... \ Profile.php: 0 "height =" (!) 90" width = "78">

Hinweis: Undefiniert Offset: 6 in C: \ wamp64 \ www \ peppal \ fb_files \ fb_profile \ profile.php auf Leitung 817 Call Stack #TimeMemoryFunctionLocation 10,0017384336 {main }() ... \ profile.php: 0 "height =" 90" width = "78">

Hinweis (!): Undefiniert Offset: 7 in C: \ wamp64 \ www \ peppal \ fb_files \ fb_profile \ Profile.php in Zeile 818 Call Stack #TimeMemoryFunctionLocation 10.0017384336 {Haupt}() ... \ Profile.php: 0 "Höhe =" 90 "Breite =" 78 ">

(!) Hinweis: Undefinierter Offset: 8 in C: \ wamp64 \ www \ peppal \ fb_files \ fb_profile \ Profile.php in Zeile 819 Call Stack #TimeMemoryFunctionLocation 10.0017384336 {main}() ... \ Profile.php: 0 "height =" 90" width = "78">

+0

und Wo ist die Frage? – tambre

Antwort

0

Verwenden isset() zu überprüfen, ob eine Variable vorhanden oder nicht, Sie Code wie sein sollten,

print isset($img_array[3]) && '<div style="position:absolute; left:15.5%; top:125%;"> 
     <img src="../../fb_users/'.$gender.'/'.$user.'/Post/'.$img_array[3].'" 
     height="90" width="78"></div>'; 

Verwenden gleicher Code für anderen Array-Indizes.

Verwandte Themen