Posted Monday, July 10, 2006 12:45:48 PM by Danilo Celic
Dreamweaver adds connection incudes at the top of the file using code similar to the following:
<?php require_once('Connections/localhost.php'); ?>
If you add code above the connection includes using require_once(), or include() and you use single quotes around the file name, then Dreamweaver will mark the Recordsets in the ServerBehaviors panel as broken. If you try to inspect the recordset to fix it, once you click OK, the include is removed (or the first include is removed, if you have more than one include at the top of the page).
FIX: If you switch to using double quotes around the file names, then the recordsets aren't marked as broken, and the require_once() and include() aren't removed, as in the following:
<?php require_once("myinclude.php"); ?>