what's wrong with this line?

$wiseword = <div class="left-box"><p>$quote[$rn]['quote']</p><p align="right">$quote[$rn]['auth']</p></div>;

Recommended Answers

All 2 Replies

You have to surround it with quotes, it's a string.

$wiseword = '<div class="left-box"><p>'.$quote[$rn]['quote'].'</p><p align="right">'.$quote[$rn]['auth'].'</p></div>';

TYVM i'm a newbie

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.