Skip to main content
October 10, 2007
Question

DW not cleaning up mysql_free_result

  • October 10, 2007
  • 1 reply
  • 264 views
DW keeps regenerating duplicate code and I just keep having to go back and deleting this when it happens. Not a problem to get by it now but definately a problem as the application grows and more new developers come on board. Any explanations? Please see below (All DW generated code):


<?php
mysql_free_result($rsUpdateConversation);

mysql_free_result($rsUpdateConversation);

mysql_free_result($rsCreateReply);

mysql_free_result($rsUpdateConversation);

mysql_free_result($rsCreateReply);
?>
This topic has been closed for replies.

1 reply

Inspiring
October 10, 2007
davidbarrackphoto wrote:
> Please see below (All DW generated code):
>
> <?php
> mysql_free_result($rsUpdateConversation);
>
> mysql_free_result($rsUpdateConversation);
>
> mysql_free_result($rsCreateReply);
>
> mysql_free_result($rsUpdateConversation);
>
> mysql_free_result($rsCreateReply);
> ?>

This type of thing usually happens when you don't use the Server
Behaviors panel to delete unwanted server behaviors or recordsets. If
you change your mind about a server behavior or recordset, highlight its
entry in the SB panel and click the minus button to remove all related
code cleanly.

If you're already doing that, you need to give more details of your
workflow when this type of duplication happens, as it's not normal.
--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/