Posts

Showing posts with the label core php

php files

 here i have discussed about how to upload files inside php, unique unique hash-name each-time. SourceURL:file://Document1 index.html    <form action="upload.php" method="post" enctype="multipart/form-data">                 <div class="mb-3">                   <label for="exampleInputEmail1" class="form-label">Email address</label>                   <input type="email" name="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp">                   <div id="emailHelp" class="form-text">We'll never share your email with anyone else.</div>    ...

read CSV file in PHP

 PHP code <!DOCTYPE html> <html> <head>     <title>CSV to HTML Table</title>     <style>         table {             border-collapse: collapse;             width: 100%;         }         th, td {             border: 1px solid #dddddd;             text-align: left;             padding: 8px;         }         th {             background-color: #f2f2f2;         }     </style> </head> <body> <?php function parseCSV($filename) {     $rows = array();     if (($handle = fopen($filename, "r")) !== false) {         while (($data = fgetcsv($handle, 1000, ",")) !== false) {...

search suggestion using php,ajax & MySQL

 index.php <!DOCTYPE html> <html> <head>     <title>jQuery Auto Suggest Textbox with Bootstrap 4 using PHP Ajax</title>     <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>     <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>     <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>     <script src="JsLocalSearch.js"></script>     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" />             <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">    <style>       ...