Forum Moderators: coopster

Message Too Old, No Replies

Dynamic Table MM Error

MM tags in Dreamweaver problem

         

DontheCat

1:35 pm on Aug 17, 2005 (gmt 0)

10+ Year Member



have this php page with one Input Field, where an user can insert Districts. The datalogging works perfectly and the MySQL DB table is poplulated.

I tried creating a Dynamic Table to view the Records using the Insert Dynamic Table option in DreamWeaver(2004MX). This is the code that gets inserted and I get an invalid mark up error apart from not able tp parse error.

--------------------------------------------------------------------------------
<table border="2" cellpadding="2">
<tr>
<td>district</td>
</tr>
<?php do {?>
<tr>
<td>

<?ph<MM:BeginLock translatorClass="MM_PHP_MYSQL" type="transDynData1" depFiles="" orig="p echo $row_Recordset1['district'];?%3E" ><MM_DYNAMIC_CONTENT SOURCE=Recordset1 BINDING="district" DYNAMICDATA=1><MM:DECORATION HILITECOLOR="Dyn Untranslated Color">{Recordset1.district}</MM:DECORATION></MM_DYNAMIC_CONTENT><MM:EndLock>

</td>
</tr>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1));?>
</table></td>
</tr>
</table>
--------------------------------------------------------------------------------

Is my application corrupted or am I doing something wrong? Any help would be appreciated. Thanks

coopster

7:43 pm on Aug 17, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, DontheCat.

The first thing I noticed is a partial php processing chunk in which the opening tag is incomplete and there is no closing tag for the section ...

<?ph<MM:BeginLock translatorClass=
Probably what is causing your parse error.

DontheCat

10:04 pm on Aug 20, 2005 (gmt 0)

10+ Year Member



Thanks Coopster,

I tried moving and merging the spilt code and succeded in getting the List Box populated. But everytime, I opened the page for editing, it mysteriously appeared again.

Actually I started getting more JS error messages after I installed a new Extension. I figured that there was some corruption in the Application itself.

Just took me 15 mins to uninstall DWMX and reinstall. The MM: code has disappeared completely.

Nice place, will hang around and contribute...

Cheers