Hi All.
i need help making a hile loop look better than it does.
heres my code
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
echo "<br>";
echo "Call ID: " . $row['callid'] ." " . " " . "Logged By: " . $row['forename'] . $row['surname'] . " ";
echo "<br>";
echo $row['problem'];
echo "<br>";
echo "<br>";
$passvar = $row['callid'];
echo ("<a href=\"adminedit.php?passvar=$passvar\">Update Call</a>");
echo "\n";
echo "<br>";
echo "<br>";
}
this all works fine but it looks absolutly terrible.
to change the formatting of my php and html by just ending the php with ?> then doing some html like </span><span class="style2"> then opening the php again...<?php echo etc etc.
however, this doesnt work for this while loop. im guessing because when i stop the php with ?> it kills the loop.
does anyone know how i may be able to change the formatting of different outputs of the loop?
take the first bit for example.....
echo "Call ID: " . $row['callid'] ." " . " " . "Logged By: " . $row['forename'] . $row['surname'] . " ";
how would i have echo "call ID" have different formatting from . $row['callid'] . etc
many many thanks for this.