I'm trying to create a while loop that will go through my query results and output my php and html. I'm trying to figure out what is the best way to output the following code.
I tried to echo the link and because the php is inside it I was getting multiple errors.
I've tried google searching but I don't really know what to put down to start finding the answer.
<?php
while ($row = mysql_fetch_assoc($result)) {
<a href='#' data-reveal-id="echo $row["name"]" data-animation="none">
<div class="grid_3">
<p id="contexttitle"> echo $row[]; <span style="float:right;"> echo $row[]; </span> </p>
<p id="accesssubmenu">Last Update: echo $row[]; </p>
</div>
</a>
<div id="echo $row[];" class='reveal-modal'>
<h1> echo $row[]; </h1>
<p> echo $row[]; </p>
<p4>Last Update: echo $row[]; </p4>
<a class="close-reveal-modal">×</a>
</div>
}
?>