Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

DW not cleaning up mysql_free_result

Guest
Oct 10, 2007 Oct 10, 2007
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);
?>
TOPICS
Server side applications
264
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 10, 2007 Oct 10, 2007
LATEST
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/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines