<!-- Presentation generated by Internet Assistant for Microsoft PowerPoint 97 -->
<HTML>
<HEAD>
<meta name="GENERATOR" content="Microsoft Internet Assistant for Microsoft PowerPoint 97">
<TITLE>First, the simple stuff...</TITLE>
</HEAD>
<BODY >
<CENTER>
<TABLE WIDTH=100%>
<TR> <TD WIDTH=100% ALIGN=CENTER>
<A HREF="sld001.htm">First</A>
<A HREF="sld027.htm">Previous</A>
<A HREF="sld029.htm">Next</A>
<A HREF="sld080.htm">Last</A>
<A HREF="index.htm">Index</A>
<A HREF="http://dbi.perl.org">Home</A>
<A HREF="tsld028.htm">Text</A>
</TD> </TR>
<TR> <TD WIDTH=100% ALIGN=CENTER>
<IMG SRC="img028.gif" usemap="#Objmap" WIDTH=800 HEIGHT=600 BORDER=0>
</TD> </TR>
</TABLE>
<P>Slide 28 of 80</P>
</CENTER>
<!-- <UL>
<H2>First, the simple stuff...</H2>
</UL></P>
<P><UL>
<LI><H2>After calling prepare() on a statement with placeholders:
</H2>
<UL>
$sth = $dbh->prepare(select * from table where k1=? and k2=?);
<BR><UL>
<LI>
</UL></UL></UL><UL>
<LI><H2>Values need to be assigned (bound) to each placeholder before the database can execute the statement
</H2>
<UL>
<LI>
</UL></UL><UL>
<LI><H2>Either at execute, for simple cases:
</H2>
<UL>
$sth->execute($p1, $p2);
<BR><UL>
<LI>
</UL></UL></UL><UL>
<LI><H2>or before execute:
</H2>
<UL>
$sth->bind_param(1, $p1);
<BR><BR>$sth->bind_param(2, $p2);
<BR>$sth->execute;</UL></UL></P>
<P> -->
</Body>
</HTML>