April 30, 201214 yr Im trying to add style to the output of the directions content from my database, but not sure on the syntax. Any ideas? <?php while($row = mysql_fetch_array($result)) { echo "<tr><td>{$row['location']}</td><td>{$row['street']}</td><td>{$row['postcode']}</td><td><span class='direction_textsize'{$row['directions']}</span></td></tr>"; } ?>
April 30, 201214 yr Im trying to add style to the output of the directions content from my database, but not sure on the syntax. Any ideas? <?php while($row = mysql_fetch_array($result)) { echo "<tr><td>{$row['location']}</td><td>{$row['street']}</td><td>{$row['postcode']}</td><td><span class='direction_textsize'{$row['directions']}</span></td></tr>"; } ?> You have a > tag missing. <?php while($row = mysql_fetch_array($result)) { echo "<tr><td>{$row['location']}</td><td>{$row['street']}</td><td>{$row['postcode']}</td><td><span class='direction_textsize'>{$row['directions']}</span></td></tr>"; } ?>
Create an account or sign in to comment