/ Published in: PHP

what was taking an embarrassingly long time in Spry took 2 lines in PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<script language="JavaScript" type="text/javascript"> var ds = new Spry.Data.XMLDataSet("data_in_XML.xml","record/thing[id='<? echo $num; ?>']"); </script> . . . <div spry:region="ds"> <p spry:repeat="ds"><strong>{ds::title}</strong></p> <p spry:repeat="ds">{ds::desc}</p> </div>
Comments
