Tag

Ajax

Browsing

https://youtu.be/4p4kI60POYs <?php //index.php $error = ”; $name = ”; $email = ”; $subject = ”; $mobile = ”; $message = ”; function clean_text($string) { $string = trim($string); $string = stripslashes($string); $string = htmlspecialchars($string); return $string; } if(isset($_POST[”submit”])) { if(empty($_POST[”name”])) { $error .= ‘<p><label class=”text-danger”>Please Enter your Name</label></p>’; } else { $name = clean_text($_POST[”name”]); if(!preg_match(“/^[a-zA-Z ]*$/”,$name)) { $error .= ‘<p><label class=”text-danger”>Only letters and white space allowed</label></p>’; } } if(empty($_POST[”email”])) { $error .= ‘<p><label class=”text-danger”>Please Enter your…

https://youtu.be/Cw8mCIK2oIY Create index.php file and put code inside of index.php file In this tutorial, we will learn how to data store inside of CSV file using PHP. CSV is a comma-separated value file in which it stores tabular data in plain text format. It stores one record in one line and for the second record, it will store in the second line. <?php //index.php $error = ”; $name = ”; $email = ”; $subject =…

Step 1: Install Laravel 7 Project I am going to install a laravel project using composer. composer create-project –prefer-dist laravel/laravel laravel7 Step 2: Going inside of project using the command cd laravel7 Step 3: Setup MySQL database Now, configure this database in the .env file. DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel7 DB_USERNAME=root [email protected] Step 4: Route Setup Here I am going to create routes to get and post method. now open “routes/web.php” file and put below code.…

Step 1: Install Laravel 7 Project I am going to install a laravel project using composer. composer create-project –prefer-dist laravel/laravel laravel7 Step 2: Going inside of project using the command cd laravel7 Step 3: Setup MySQL database Now, configure this database in the .env file. DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel7 DB_USERNAME=root [email protected] Step 4: Create employee_images Table and Model also. Here, I have created migration for employee_images using Laravel 7 php artisan command, you can check…

Step 1: Install the laravel project using the command line. composer create-project –prefer-dist laravel/laravel laravel7ajax Step 2: Open project in code and use vs code terminal. Step 3: find .env file in root directory than setup database configuration. DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=database_name DB_USERNAME=database_username DB_PASSWORD=database_password Step 4: run Migration command php artisan make:migration create_books_table Now go to app/datatabase/migrations and open books migration file and put code within migration file app/database/timestamp_create_books_table.php the below code here : <?php…

Ajax Autocomplete Search in Laravel 7 Step 1: Install laravel 7 using composer composer create-project –prefer-dist laravel/laravel laravel7search Step 2: Going inside of project using the command cd laravel7search Step 3: Setup MySQL database Now, configure this database in the .env file. DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel7search DB_USERNAME=root [email protected]123 Step 3: Create Migration and Model In this step, we have to create a migration for students table using Laravel 7 PHP artisan command, so first fire…

<form action=”” class=”contact_form” id=”comment”> <center> <div id=”result”> </div> </center> <div class=”form-group”> <label for=”name”>Name* </label> <input type=”name” class=”form-control” name=”name” placeholder=”Type Here”> </div> <div class=”form-group”> <label for=”organization”>Organization name </label> <input type=”text” class=”form-control” name=”organization_name” placeholder=”xyz”> </div> <div class=”form-group”> <label for=”email”>Email* </label> <input type=”email” class=”form-control” name=”email” placeholder=”[email protected]”> </div> <div class=”form-group”> <label for=”sel1″>Service you provide </label> <select class=”form-control” name=”service_provider”> <option>Sell </option> <option>2 </option> <option>3 </option> <option>4 </option> </select> </div> <div class=”checkbox”> <label> <input type=”checkbox”> <span class=”label_span”>I accept the terms and…

Ajax Autocomplete Search in Laravel 7 Step 1: Install laravel 7 using composer composer create-project –prefer-dist laravel/laravel laravel7search Step 2: Going inside of project using the command cd laravel7search Step 3: Setup MySQL database Now, configure this database in the .env file. DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel7search DB_USERNAME=root [email protected] Step 3: Create Migration and Model In this step, we have to create a migration for students table using Laravel 7 PHP artisan command, so first fire…

Step 1: Install the laravel project using the command line. laravel new laravel_ajax Step 2: open project in code and use vs code terminal. Step 3: find .env file in root directory than setup database configuration. DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=database_name DB_USERNAME=database_username DB_PASSWORD=database_password Step 4: run Migration command php artisan make:migration create_books_table Now go to app/datatabase/migrations and open books migration file and put code within migration file app/database/timestamp_create_books_table.php the below code here : <?php public function…

Step 1: Install Laravel 6 Project I am going to install a laravel project using composer. composer create-project –prefer-dist laravel/laravel laravel6 Step 2: Going inside of project using the command cd laravel6 Step 3: Setup MySQL database Now, configure this database in the .env file. DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel6 DB_USERNAME=root [email protected] Step 4: Route Setup Here I am going to create routes to get and post method. now open “routes/web.php” file and put below code.…

Faster PHP Cloud Hosting