Hi
I have variables set in the head of the page as they are used for other parts of the page.
I have a problem where by I am trying to get the variable to echo out in the result.
I have tried several ways but either ther eis an error or the variable $txt2 does not show in the page.
Its working in the query but not in the result
Hope you can help
Thanks
$result = mysql_query("SELECT * FROM table1, table2 Where field1 = '$txt2' and field2 = table1.field2") or trigger_error(mysql_error().$sql);
while($row = mysql_fetch_array($result)){
echo '<li>
<h2><a href="' . $row['$txt2'] . '/' . $row['$txt2'] . '.php">' . $row['title'] . '</a></h2>
</div>
</li>';