954,560 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

echo from mysql and Mix with HTML

Hey guys.. could someone please help me with..

What wrong with this:

echo "<td width='25%'><img src='images/Lock.png' title='" . $row['username'] . "' - '" . $row['password'] . "'></td>";


i Get only the username..

Cheers, Sagive

sagive
Junior Poster in Training
87 posts since Dec 2009
Reputation Points: 34
Solved Threads: 8
 

You got your quote marks mixed up.
Try

title='" . $row['username'] . " - " . $row['password']
smantscheff
Nearly a Posting Virtuoso
1,233 posts since Oct 2010
Reputation Points: 300
Solved Threads: 254
 

Great man, 10x a lot :)

sagive
Junior Poster in Training
87 posts since Dec 2009
Reputation Points: 34
Solved Threads: 8
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: