<div>Hi, Good morning, </div><div><br></div><div>I am tryingto apply a conditional action on my drupal, page. by applying this conditional action with the following custom php to add an entry to the database, but unfortunately, no entry is being submitted. and there is no returning error too. can you please assist? </div>

<div><br></div><div>here is the custom php I have added. </div><div><br></div><div>$result = db_query_range(&#39;SELECT*FROM users AS u LEFT JOIN profile_values AS pv ON u.uid = pv.uid WHERE u.uid = %d&#39;, $order-&gt;uid, 0, 10);</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span> </div><div>  while ($res = db_fetch_object($result)) {</div><div>$data = array(</div><div>&#39;id&#39; =&gt; &#39;&#39;,</div><div>&#39;reqadm_login&#39; =&gt; $res-&gt;name,</div>

<div>&#39;reqadm_pass&#39; =&gt; $res-&gt;pass,</div><div>&#39;domain_name&#39; =&gt; $res-&gt;value,</div><div>&#39;family_name&#39; =&gt; $order-&gt;billing_first_name,</div><div>&#39;first_name&#39; =&gt; $order-&gt;billing_last_name,</div>

<div>&#39;comp_name&#39; =&gt; $order-&gt;billing_company,</div><div>&#39;iscomp&#39; =&gt; &#39;yes&#39;,</div><div>&#39;email&#39; =&gt; $order-&gt;primary_email,</div><div>&#39;phone&#39; =&gt; $order-&gt;billing_phone,</div>

<div>&#39;addr1&#39; =&gt; $order-&gt;billing_street1,</div><div>&#39;addr2&#39; =&gt; $order-&gt;billing_street2,</div><div>&#39;zipcode&#39; =&gt; $order-&gt;billing_postal_code,</div><div>&#39;city&#39; =&gt; $order-&gt;billing_city,</div>

<div>&#39;country&#39; =&gt; $order-&gt;billing_country,</div><div>&#39;paiement_id&#39; =&gt; $order-&gt;order_id,</div><div>&#39;product_id&#39; =&gt; $order-&gt;,</div><div>&#39;shopper_ip&#39; =&gt; $order-&gt;host,</div>

<div>&#39;date&#39; =&gt; $nowdate,</div><div>&#39;time&#39; =&gt; $nowtime,</div><div>&#39;add_service&#39; =&gt; &#39;yes&#39;</div><div>  );</div><div>  drupal_write_record(&#39;new_admin&#39;, $data);</div>