recently after testing my SQL query script, I ran into a problem. The larger the character in my if statement, the php ends, and then the rest of the code is displayed as html.
Here is my code. (This is in "poll.html", an html file with php code in it)
<div class="pollcont"> <?php $pollrow = mysql_query("SELECT * FROM `Activepoll` ORDER BY `id` DESC LIMIT 1"); $rows = mysql_num_rows($pollrow); if($rows > 0){ Do this stuff }; ?> </div>
Instead of completing the if statement, the browser displays 0){ Do this stuff }; ? 0){ Do this stuff }; ? >.
Why is this happening and how can I change this to make the script work?
html php apache
user3591017
source share