Note that there are some explanatory texts on larger screens.

plurals
  1. POmails are not deleting from inbox
    primarykey
    data
    text
    <p>I try to delete mails from inbox and move it to trash folder but my code is not working. Can anyone suggest me something.</p> <pre><code> if($attachment!="") { /* $outputList .='' . $send. '&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;' .$subject.'&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'.$time.'&lt;hr/&gt;'; */ /* $outputList .='&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;input type="checkbox" class="check"&gt;&lt;/td&gt;&lt;td style="width:30%;text-align:left"&gt;' . $send. '&lt;/td&gt;&lt;td style="width:42%; text-align:left"&gt;' .$subject. '&lt;/td&gt;&lt;td style="width:3%"&gt;' . $attach . '&lt;/td&gt;&lt;td style="width:30%"&gt;'.$time.'&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;'; */ $outputList .='&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;input type="checkbox" class="check"&gt;&lt;/td&gt;&lt;td style="width:30%;text-align:left"&gt;'.$sender.'&lt;/td&gt;&lt;td style="width:45%;text-align:left"&gt;'.$subject.'&lt;/td&gt;&lt;td style="width:3%" align="left" &gt;' . $attach . '&lt;/td&gt;&lt;td style="width:30%"&gt;'.$time.'&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;'; } else { $outputList .='&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;input type="checkbox[]" value=" $row["topic_id"]" class="check"&gt;&lt;/td&gt;&lt;td style="width:30%;text-align:left"&gt;'.$sender.'&lt;/td&gt;&lt;td style="width:45%;text-align:left"&gt;' .$subject. '&lt;/td&gt;&lt;td style="width:3%" align="left" &gt;&lt;/td&gt;&lt;td style="width:30%"&gt;'.$time.'&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;'; } } &lt;div class="delete"&gt; &lt;input name="del" type="button" value="delete" action=""/&gt; &lt;?php include 'delete.php'; if (isset($_POST['del']) &amp;&amp; isset($_POST['check'])) { foreach($_POST['check'] as $del_id){ $del_id = (int)$del_id; $result= odbc_exec($conn,"insert into trash (sender,cc,bcc,subject,message,attachment,filename,filesize,date) select sender,cc,bcc,subject,message,attachment,filename,filesize,date from inbox where ID=$del_id"); if($result==true) { $result= odbc_exec($conn,"delete from sent where ID=$del_id"); $move="message deleted"; }else $move="cannot delect the mail"; } } ?&gt; &lt;/div&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload