~beaky/wacs/wacs-php

« back to all changes in this revision

Viewing changes to docs/programming/htmlm/ch03.html

  • Committer: beaky
  • Date: 2020-06-29 15:31:34 UTC
  • Revision ID: svn-v4:4196e993-711f-0410-950c-c89e1d26c723:wacs-php:2901
Documentation build complete for wacs-php 1.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
</pre><p>this needs to be done just below the line that establishes the 
27
27
link to the model's WACS model page, but before her name (you could
28
28
put it after if you prefer) and closing <code class="literal">&lt;/a&gt;</code>.
29
 
</p><div class="example"><a name="idm46217812816624"></a><p class="title"><b>Example�3.1.�Modified Output Loop with Model Headshot Code</b></p><div class="example-contents"><pre class="programlisting">
 
29
</p><div class="example"><a name="idm46564165357536"></a><p class="title"><b>Example�3.1.�Modified Output Loop with Model Headshot Code</b></p><div class="example-contents"><pre class="programlisting">
30
30
while( $results = $cursor-&gt;fetch(PDO::FETCH_NUM) )
31
31
{
32
32
        print "&lt;li&gt;";
47
47
        print $results[0]."&lt;/a&gt;&lt;/li&gt;\n";
48
48
}
49
49
</pre></div><p>We then copy up the modified version of the program and run it 
50
 
and we should see something like this:</p><a class="indexterm" name="idm46217812812432"></a><div class="screenshot"><span class="inlinemediaobject"><img src="images/mysimple2.jpg" align="middle" width="90%"></span></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch02s03.html">Prev</a>�</td><td width="20%" align="center"><a accesskey="u" href="pt01.html">Up</a></td><td width="40%" align="right">�<a accesskey="n" href="ch03s02.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Putting It All Together�</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">�More Model Information</td></tr></table></div></body></html>
 
50
and we should see something like this:</p><a class="indexterm" name="idm46564165353344"></a><div class="screenshot"><span class="inlinemediaobject"><img src="images/mysimple2.jpg" align="middle" width="90%"></span></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch02s03.html">Prev</a>�</td><td width="20%" align="center"><a accesskey="u" href="pt01.html">Up</a></td><td width="40%" align="right">�<a accesskey="n" href="ch03s02.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Putting It All Together�</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">�More Model Information</td></tr></table></div></body></html>