CKEditor图像未显示在浏览器中

时间:2019-03-24 17:06:15

标签: php mysql image ckeditor

浏览器无法从数据库获取图像

如何在本地文件夹中上传图像?

以下是代码

<html>
    <head>
        <title>Sample Blog</title>
        <link rel = "stylesheet" type = "text/css" href = "https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" />
    </head>
    <body>
        <div class="container">
            <div class="col-sm-6">
                <h1 class="text-center">New Article</h1>    
                <form action="upload-article.php" method="POST" enctype="multipart/form-data">
                    <div class="form-group">
                        <label class="d-block">Title:</label>
                        <input type="text" class="form-control" name="title" id="" placeholder="Enter Article Title!">
                    </div>
                    <div class="form-group">
                        <label class="d-block">Image:</label>
                        <input type="file"  name="img" id="" >
                    </div>
                    <div class="form-group">
                        <label class="d-block">Content:</label>
                        <textarea  class="ckeditor" name="text" id=""> </textarea> 
                    </div>
                    <button type="submit" name="submit" class="btn btn-sm btn-success mt-3 float-right">Share</button>
                </form>
            </div>
        </body>
        <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" type="text/javascript"></script>
        <script src="./ckeditor/ckeditor.js" type="text/javascript"></script>
    </html>         

Here is the screenshot

0 个答案:

没有答案