fork download
  1. <?php
  2. $result1 = mysql_query("SELECT * FROM `favourite`
  3. WHERE `sendfrom`='".$_SESSION["id"]."' AND
  4. sendto=$current_user");
  5. $num_rows1 = mysql_num_rows($result1);
  6.  
  7. if($num_rows1 == 1) {
  8. <form method="post" action="remfav.php" id="remfav">
  9. <td width="10%"><img src="images/watchlist.png" width="24" /></td>
  10. <td align="left"><a href="javascript:{}" onclick="document.getElementById('remfav').submit(); return false;">Remove</a></td>
  11. <input type="hidden" value=" <?php echo $temp; ?>" name="toid" />
  12. </form>
  13. }
  14. else {
  15. <form method="post" action="addfav.php" id="addfav">
  16. <td width="10%"><img src="images/watchlist.png" width="24" /></td>
  17. <td align="left"><a href="javascript:{}" onclick="document.getElementById('addfav').submit(); return false;">Add to Favourite</a></td>
  18. <input type="hidden" value=" <?php echo $temp; ?>" name="toid" />
  19. </form>
  20. }
Runtime error #stdin #stdout #stderr 0.01s 20592KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Parse error:  syntax error, unexpected '<' in /home/a4tW3D/prog.php on line 8