Showing posts with label PHP project. Show all posts
Showing posts with label PHP project. Show all posts

Monday, 11 July 2022

Google Recaptcha Integration | PHP , ASP.NET C# , Codeiginater 4

 




Tuesday, 15 March 2022

Layout In CI

Step 1 :

Make a folder named shared in app/Views

Step 2 : 

Make 3 files named menu.php,footer.php,layout.php

menu.php : will hold menu of website

layout.php : will hold master layout page for your website

footer.php : will hold footer code 

Thursday, 10 February 2022

Begin CodeIgniter 4.1.8

Whoops! We seem to have hit a snag. Please try again later

Solution : 


Your PHP is missing intl extension. It is useful for formatting currency, number and date/time as well as UCA-conformant collations, for message formatting and normalizing text..etc.


Follow the steps to install it in XAMPP -

  • Open [xampp_folder_path]/php/php.ini to edit.
  • Search for ;extension=intl and remove the ;.
  • Save the php.ini file and restart Apache.

Friday, 12 November 2021

Save form data into database

 This post will help  step by step to understand , how to save your HTML form data into Mysql Database.

Database Table structure 


Form

Step 1

Make  HTML Form , code is given below

<form method="post" action="index">

    @csrf

    Name : <input type="text" name="name" placeholder="Your Name" required class="form-control"><br>

    Phone : <input type="text" name="phone" required placeholder="Phone Number" class="form-control"><br>

    Message :

    <textarea rows="5" name="message" required placeholder="Message" class="form-control"></textarea><br>

    <input type="submit" value="Save" name="submit">

</form>


Step 2 


Create Model by given command

php artisan make:model stumodel 

Model Location :  app\Models

Model Code

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class stumodel extends Model
{
protected $table = 'kashiquery';
    use HasFactory;
public $timestamps=false;
protected $fillable = [
'name', 'phone','message','createddate'
];
}

Step 3 : Create Controller


Create controller by given command below

Command : PHP artisan make:controller common

Controller location : app\Http\Controllers

Code

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Models\stumodel;
class common extends Controller
{
    public function AddData(Request $req)
{
        $data=new stumodel;
//$r = $req->input();
$data->name=$req["name"];
$data->phone=$req["phone"];
$data->message=$req["message"];
$data->createddate=date("Y-m-d");
$data->save();
return redirect('index');
    }
}
 

Step 4 : Configure Route


Route File Location : \routes\web.php 

<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\common;


Route::get('/', function () {
    return view('index');
});
Route::view('index','index');
Route::post('index',[common::class,'AddData']);





Saturday, 13 February 2021

Real Estate PHP project full source code Free Download | Free PHP Project

 


Real Estate PHP Project

This real estate project is created to cover the student project as well as handling real estate projects. The project is diveded into a two-part, website and CRM. The website will cover online presentations of projects in front of clients. CRM covers business internal operations. This project is live and used by many customers. Purpose of this project to post here, for the learning  purpose of students that  How real estate operations being handled by the Online website. Any commercial uses of this project are prohibited and any violence of agreement is found then legal action may charge against of user.

Saturday, 21 November 2015

Computer Science Project