Welcome Guest, Not a member yet? Register   Sign In
The TEXT type data view failed in CI4
#1

(This post was last modified: 09-25-2023, 12:45 AM by ozornick. Edit Reason: Format code )

Hello,
I am using CI 4.4.1, this is my code snippet.
And my data type as below in MySQL.


I used findAll() method to show the whole table, there is no response and show only white web page. 
The code worked only when I commented the loginfo line.

I don't know why the TEXT  type data can't be viewed.
Any limitation for TEXT type or table data size in CI 4?

Thank you.
Nano
[Image: 20230925072122.png]

[Image: 20230925072519.png]

PHP Code:
          <tbody>
        <!--      ['companyid','loginfo','logby','date']-->
        <?php if($obj_log): ?>
            <?php foreach($obj_log as $log): ?>
                <tr>
                    <td class="my-nowrap"><?php echo $log['id']; ?></td>
                    <td class="my-nowrap"><?php echo $log['companyid']; ?></td>
<!--                    <td class="my-nowrap">--><?php //echo $log['loginfo']; ?><!--</td>-->
                    <td class="my-nowrap"><?php echo $log['logby']; ?></td>
                    <td class="my-nowrap"><?php echo $log['date']; ?></td>
                </tr>
            <?php endforeach; ?>
        <?php endif; ?>
          </tbody>
        </table> 
Reply


Messages In This Thread
The TEXT type data view failed in CI4 - by nanohe - 09-24-2023, 04:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB