PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?
include('includes/config.php');
// Builds the database query
$query = "SELECT * FROM courses ";
$query .= "WHERE id = '$id' ";
// Execute the query
$result = mysql_query($query);
// fetch the row and display the product
$row = mysql_fetch_array($result);
echo ( "<tr>" );
echo ( "<td><b>$rowїname]</b></td>" );
echo ( "<td><b>$rowїdescription]</b></td>" );
echo ( "<td><b>$rowїstatus]</b></td>" );
echo ( "</tr>" );
?>
</table>
</body>
</html>
When I run this, it gives me an undefined variable error. When I comment it out, the script works, except it only displays the first set of data. I know the problem lies with line 11, but I am lost as to how to fix it... any help is appreciated.
Last edited by greenthree on Fri Feb 25, 2005 12:15 am, edited 1 time in total.