• I am attempting to post a how-to regarding a simple web application I created. Problem is I am trying to post the raw code, but WP is rendering the code instead of just displaying it. I have the in place so not sure why it is doing this. Any ideas? Here is the ode I want to just display as text.

    <form id="sports" action="Query.php" method="POST" name="sports">Select a Sport
    <select name="category_id"> < ?php</select> <select name="category_id"> $sql = "SELECT category_id, sport FROM sports ".</select> <select name="category_id">"ORDER BY sport";</select>$rs = mysql_query($sql);
    while($row = mysql_fetch_array($rs))
    {
    echo "".$row['sport']."\n "; } ?>
    <input type="submit" name="submit" value="Select a Sport" /></form>

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘code is being rendered when I don't want it to be’ is closed to new replies.