Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP Email Character Alignment
    text
    copied!<p>I did the email function on php. but when I get the email is not align properly. Can anyone please help me to fix the issue. this part couldn't align properly, I don't have much knowlege on that. </p> <pre><code>What is Union Assurance brand pay off line correct What does the Union Assurance brand colour orange signify correct What does the Union Assurance brand colour grey signify wrong Union Assurance is baked by correct Union Assurance Brand is built on the platform of wrong Union Assurance brand promise trust is delivered through wrong Union Assurance Symbol depicts correct What's Union Assurance brand ranked in the LMD Brands. correct What's Union Assurance brand value? correct What is the best way to build your brand correct </code></pre> <hr> <pre><code>&lt;?php $result = select("SELECT * FROM results ORDER BY userId DESC LIMIT 1"); $row = mysql_fetch_array($result); if($row['email']==''){ echo "Email cannot be Send"; } else{ $mailTo=$row['email']; $name=$row['username']; $score=$row['score']; $to=$mailTo; // Your subject $subject="Union Assurance Questionnaire Result"; // From $header="from: Union Assurance&lt;unionassurance@ualink.lk&gt;"; // Your message $message="Dear $name,\r\n"; $message.="Thank you For Participate the Union Assurance Questionnaire,\r\n\n"; $message.="your Score is: $score "; $result2=select("SELECT questions FROM questions"); $qstId=1; while($row2 = mysql_fetch_array($result2)){ if($row['question'.$qstId.'']=='correct'){ $message.="\n\n".$row2['questions'].":"; $message.="".$row['question'.$qstId.''].""; } else{ $message.="\n\n".$row2['questions'].""; $message.= "\t\t".$row['question'.$qstId.''].""; } $qstId++; } $message.="\n\n Thank you, \n Union Assurance IT Team"; // send email $sentmail = mail($to,$subject,$message,$header); // if your email succesfully sent if($sentmail){ echo "Email Has Been Sent ."; } else { echo "Cannot Send Email "; } } ?&gt; </code></pre>
 

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