Forum Moderators: coopster

Message Too Old, No Replies

echo statment, I need a bit of elp.

this has got to be the easiest yet for you guys.

         

ski442

11:07 pm on Mar 31, 2007 (gmt 0)

10+ Year Member



Hi all.
This is first post to any forum. and would like to know How i call 2 db fields to show in the same line.
This is what i have and would like them both within the h4 tags which are styled with css

echo '<h4>' . $row ['title'] . '</h4>';
echo ' ' . $row ['stockcode'] . ' ';

I suspect it's somthing very minor.
All comments are welcome.(and about the spelling. getting tired.)

cameraman

11:18 pm on Mar 31, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, ski442!

You can do this:
echo '<h4>' . $row['title'] . ' ' . $row['stockcode'] . '</h4>';

The periods tell it to concatenate (string together) the parts.

ski442

11:21 pm on Mar 31, 2007 (gmt 0)

10+ Year Member



Thats a super fast reply man. Thanks for that.