I know this is really basic stuff so I apologise upfront. I am editing an existing php file (GNU ), that I didn't create.
I have added a field "days" to a database and successfully edited php form to update that field. I am certain the field is there and valid. But I am having problems getting the field to display in an existing list report
This is the existing line that shows the data and I just want to add the field "days' to the end of the line
$return .= '#'.$i.': <em>'.esc_html($cricket->firstname).' '.substr(esc_html($cricket->lastname), 0, 12).'</em>';
I have played with various combinations are adding ($cricket->days) resulting in nothing or page crash
$return .= '#'.$i.': <em>'.esc_html($cricket->firstname).' '.substr(esc_html($cricket->lastname), 0, 12).'</em>' '($cricket->days)';
I figured it out, had to add.esc_html to the field name. All good thatnks
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.