Search the Community
Showing results for tags 'image_intro'.
-
Taisu izsaukumu no joomlas 2.5 datubāzes, kur ir lauks images, lai varētu image_intro vērtību ielikt tālāk <img src="<?php echo $image ;?>">, taču kko acīmredzami daru nepareizi.. Meiģinājums # 1: echo "<pre>"; print_r( htmlspecialchars($images)); echo "</pre>"; Rezultāts # 1 <pre>{"image_intro":"images\/interview\/05229.jpg","float_intro":"","image_intro_alt":"", "image_intro_caption":"","image_fulltext":"images\/interview\/05229.jpg","float_fulltext":"","image_fulltext_alt":"", "image_fulltext_caption":""}</pre> Meiģinājums # 2: <img src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/> Rezultāts # 2 <img src="/test/ Notice: Trying to get property of non-object in C:\Apache2\docs2\test\templates\ne\index.php on line 78 " alt=" Notice: Trying to get property of non-object in C:\Apache2\docs2\test\templates\ne\index.php on line 78 "/> Meiģinājums # 3 echo $images['image_intro']; Rezultāts # 3 { Pats query {"image_intro":"images\/06592.jpg","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":" ","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}