php - Title tag not displaying as expected -


i try style rows css class. mysql data appears on page, , not in title tag anymore.

where mistake?

screenshot

<a href="" title="  <?php $abfrage = "select * tester"; $ergebnis = mysql_query($abfrage); while($row = mysql_fetch_object($ergebnis)) { ?> <p><span class="qtip-big"><?php echo $row->name; ?></span></p>  <p><?php echo $row->beschreibung; ?></p>  <?php } ?>  ">testlink</a> 

the text appears on page , not inside of tooltip.

your html wrong :) code this:

<a title="<p>paragraph</p>" > anchor </a> 

html element not allowed in attributes (title attribute, href / src/ alt etc)

to multiple lines, can this:

<a title="line1 \nline2" > anchor </a> 

i've added \n character newline. not 'line2' directly attached. though looks stupid, prevents whitespace bevore 'line2'

if have htmlerrors, should try html-validator, return errors have in html


Comments

Popular posts from this blog

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -