What I am trying to do is to store "<a $attrib_list>\n\tTextLink\n</a>\n" in a mysql field named "syntax" database.
Then in a php file,
1) Create and populate the variable $attrib_list
2) Create a loop to pull out the syntax field data as specified above and assign it to $syntax below the variable $attribute_list
3) Use print statement to out the variable $syntax which I was hoping would be populated with the variables contents of $attrib_list.
So lets say this:
Code: Select all
$attrib_list = ' href="../index.html" title="index"';
...
while ($row = mysql_fetch_array($result)){
$syntax = $row['syntax'];
}
...
print "<html>\n";
print "<head><title></title></head>\n";
print "<body>\n";
print $syntax;
print "</body>\n</html>\n";Code: Select all
<html>
<head><title></title></head>
<body>
<a href="../index.html" title="index">
TextLink
</a>
</body>
</html>