Below is the code im having problems with, for some reason when I use the echo "Name: ...... it reads from the database, but when I use the Name : <?=$row['compname.... it doesn't.
I don't want to have to write echo for every line and I don't think its the best method so I come to you guys for help!
<html>
<body>
<h1>List all People </h1>
<?php
while ($row= mysql_fetch_array($result))
{ ?>
Name : <?=$row['compname']?> Job : <?=$row['compdescription']?> <!-- THIS DOESN'T WORK!-->
<?php
//echo "Name:  ", $row['compname']." " . "" . "Job:  ", $row['compdescription']; //THIS WORKS!
?>
<br />
<?php } ?>
</body>
</html>