mercredi 4 septembre 2019

is there any other way to get data from database?

I've table on mysql and i want to show one of the field, its the id field on my email layout on laravel. the id field consist some random code generated by the rand() function.

and I've tried this way,



but, the return value on the email view is 0

//this is what i wrote on the email view

<td align="left" class="esd-block-text es-p15t es-p10b">                                                                                  
<p style="font-size: 16px; color: #777777;">Thank you for filling in the lost items form. Here are some details from your report .<br></p>
<p style="font-size: 16px; color: #777777;">first your report ticket number is   <br></p>
<p style="font-size: 16px; color: #777777;"><br></p>
<p style="font-size: 16px; color: #777777;">Your details:<br></p>
<table style="width:100%" class="table table-striped table-bordered table-hover table-condensed">

i expect the output is the id from the id field on database. But it turns out to be 0.

any idea why?




Aucun commentaire:

Enregistrer un commentaire