Original Post
Hey, I'm trying to get it so when I click Show Address Book, teh div shows (this part I've done successfully), then make it so when the div shows it grabs data form a database called addressbook. The code looks like this: But when I show it it doesn't execute the PHP code. It's jsut blank. Anyone have any ideas? Thanks in advance.
<font style="font-family:'Courier New', Courier, mono; font-size:11px;">
<center>
Address
<?php
$sql_3 = "SELECT * FROM addressbook WHERE myuser = '$myuser'";
$result_3 = mysql_query($sql_3, $dbh);
while($row_3 = mysql_fetch_array($result_3))
{
$account = $row_3[ 'useracc' ];
?>
';" style="font-family:'Courier New', Courier, mono; font-size:11px;"><?php echo "$useracc"; ?>
<?php
}
?></center>
</font>