Hi,
Can anyone tell me what I'm doing wrong with in the following:
<ul>
<?php
$sql="SELECT topicID, topicName FROM topics";
$result=mysql_query($sql);
while($query_data = mysql_fetch_array($result)) {
echo '<li><a href="admingate.php?action=edit_topic&topicID='.'$query_data[topicID]">'.'$query_data[topicName]'.'</a></li><br>';
}
?></ul>
I get the following error message: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource. (Please ignore any wrapping).
Thanks for any pointers!