echoing records need some help
Posted: Thu Dec 16, 2004 5:40 am
Guys I need to put each of my table coloumns into this eco statement but it wont work as the records will appear with quotes around them and if i mess around with it too much then it wont work at all - how would i put in the following coloumns into this statement: salutation, firstname, surname, organisation? please help im stuck. thank you.
?>
Code: Select all
while ($row = mysql_fetch_object($sql)) {
echo "$count. "$row->salutation">$row->firstname<br />\r\n"; // this is example, you may enter here anything you like
$count += 1;
}