<div dir="ltr"><div><div>I could probably do it a different way as far as the module is concerned but I just wanted to practice basic DB ops. <br></div>Another topic of discussion would be &quot;when do I need to write code to access the DB&quot;? Not having had too much experience in that area I may be posing a superfluous question. <br>
<br></div>Tony<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 13, 2014 at 4:06 PM, Tony <span dir="ltr">&lt;<a href="mailto:tony@tony-mac.com" target="_blank">tony@tony-mac.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><p dir="ltr">Exactly the first scenario.I have that book but it doesn&#39;t really go into the detail I need.  As you say it is a good start. But I need a good finish. <br>
</p><p dir="ltr"> I have created a module with a form which should CRUD (can one say that?) to a table I have defined in the install file. If I could just find some sample code... How to insert (I know db_insert etc but what about the return codes and messages etc etc) . <br>

</p><p>Thanks <br></p><p dir="ltr"><br></p>
<div class="gmail_quote"><div><div class="h5">On Jan 13, 2014 3:39 PM, &quot;Metzler, David&quot; &lt;<a href="mailto:metzlerd@evergreen.edu" target="_blank">metzlerd@evergreen.edu</a>&gt; wrote:<br type="attribution"></div>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">







<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Not sure what you mean here.  Are you talking about writing code using the drupal database API db_query, etc.?   If so Drupal Pro Development is a good start. 
 Perhaps you’re talking about using working with external non-drupal databases?  Or something else?
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><br>
Dave<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href="mailto:support-bounces@drupal.org" target="_blank">support-bounces@drupal.org</a> [mailto:<a href="mailto:support-bounces@drupal.org" target="_blank">support-bounces@drupal.org</a>]
<b>On Behalf Of </b>Tony<br>
<b>Sent:</b> Monday, January 13, 2014 3:37 PM<br>
<b>To:</b> <a href="mailto:support@drupal.org" target="_blank">support@drupal.org</a><br>
<b>Subject:</b> [support] Databases<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Does anyone know of a good book covering how to work with databases and drupal?<u></u><u></u></p>
</div>
<p class="MsoNormal">Thanks<u></u><u></u></p>
</div>
<p class="MsoNormal">Tony<br clear="all">
<u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal"><br>
-- <u></u><u></u></p>
<div>
<p><b><i><span style="font-size:10.0pt;font-family:&quot;Lucida Handwriting&quot;;background:white">Anthony Stefan Maciejowski</span></i></b><u></u><u></u></p>
<p><b><i><span style="font-size:10.0pt;font-family:&quot;Lucida Handwriting&quot;;background:white"><a href="http://www.about.me/TonyMac" target="_blank">http://about.me/TonyMac</a></span></i></b><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

<br></div></div><div class="im">--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br><br></div></blockquote></div>
</div>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><p><b style="font-family:&#39;Lucida Handwriting&#39;,cursive;font-size:13px;background-color:rgb(255,255,255)"><i>Anthony Stefan Maciejowski</i></b></p><p>
<b style="font-family:&#39;Lucida Handwriting&#39;,cursive;font-size:13px;background-color:rgb(255,255,255)"><i><a href="http://www.about.me/TonyMac" target="_blank">http://about.me/TonyMac</a></i></b></p><p></p><br><p></p>
</div>
</div>