使用ckeditor从数据库修改多个图像fetech

问题描述

我正在使用ckeditor将3张图像上传数据库中,但是当我尝试使用相同的代码来更新图像时,这些图像仅从第一列的数据库工作中获取,而拒绝从数据库获取数据。下一个图像列

我的代码

   <script type='text/javascript' src='ckfinder/ckfinder.js'></script>
</head>
<body>
    <p>
        <textarea id='Photo2' name='Photo2' rows='10' cols='80'><? echo "$p_cats[Photo2]"; ?></textarea>
    </p>

    <script src='//cdn.ckeditor.com/4.5.6/standard-all/ckeditor.js'></script>
    <script>
        if ( typeof CKEDITOR !== 'undefined' ) {
            CKEDITOR.addCss( 'img {max-width:100%; height: auto;}' );
            var editor = CKEDITOR.replace( 'Photo2',{
                extraPlugins: 'uploadimage,image2',removePlugins: 'image',height:350
            } );
            CKFinder.setupCKEditor( editor,'ckfinder/' ) ;
        } else {
            document.getElementById( 'description' ).innerHTML = '<div class=\"tip-a tip-a-alert\"></div>'
        }
    </script>
<tr>
<td width='28%'><strong>Photo1<br><br><center>

</td>
<td style='width: 108px' colspan='2'>

<head>
    <script type='text/javascript' src='ckfinder/ckfinder.js'></script>
</head>
<body>
    <p>
        <textarea id='Photo1' name='Photo1' rows='10' cols='80'><? echo "$p_cats[Photo1]"; ?></textarea>
    </p>

    <script src='//cdn.ckeditor.com/4.5.6/standard-all/ckeditor.js'></script>
    <script>
        if ( typeof CKEDITOR !== 'undefined' ) {
            CKEDITOR.addCss( 'img {max-width:100%; height: auto;}' );
            var editor = CKEDITOR.replace( 'Photo1','ckfinder/' ) ;
        } else {
            document.getElementById( 'description' ).innerHTML = '<div class=\"tip-a tip-a-alert\"></div>'
        }
        break;
    </script>
</body></td>
    </tr>


</td>
</tr>
<tr>
<td width='28%'><strong>Photo2<br><br><center>

</td>
<td style='width: 108px' colspan='2'>

<head>
    <script type='text/javascript' src='ckfinder/ckfinder.js'></script>
</head>
<body>
    <p>
        <textarea id='Photo2' name='Photo2' rows='10' cols='80'><? echo "$p_cats[Photo2]"; ?></textarea>
    </p>

    <script src='//cdn.ckeditor.com/4.5.6/standard-all/ckeditor.js'></script>
    <script>
        if ( typeof CKEDITOR !== 'undefined' ) {
            CKEDITOR.addCss( 'img {max-width:100%; height: auto;}' );
            var editor = CKEDITOR.replace( 'Photo2','ckfinder/' ) ;
        } else {
            document.getElementById( 'description' ).innerHTML = '<div class=\"tip-a tip-a-alert\"></div>'
        }
    </script>
</body></td>
    </tr>
 

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)