Cog PHP
Free PHP source codes
Monday, 27 June 2016
how to connect database in php using xampp server
Step 1:
Create Database see tutorial Create Database in MySql server
Step 2:
PHP script to connect Database // connect.php
<?php
//mysqli_connect('host_name','user_name','user_password','database_name');
$conn = mysqli_connect('localhost','root','','test_db');
if(!$conn){
echo 'connection error!';
}
?>
Create Database see tutorial Create Database in MySql server
Step 2:
PHP script to connect Database // connect.php
<?php
//mysqli_connect('host_name','user_name','user_password','database_name');
$conn = mysqli_connect('localhost','root','','test_db');
if(!$conn){
echo 'connection error!';
}
?>
how to create database in mysql using xampp server
Step 1:
Open phpmyadmin panel
Step 2:
click on "New" button
Step 3:
Enter Database name in text field and press "Create" button
Open phpmyadmin panel
Step 2:
click on "New" button
Step 3:
Enter Database name in text field and press "Create" button
How to install codeigniter 3 in xampp server
Step 1:
download CodeIgniter click on download link
Step 2:
unzip downloaded file CodeIgniter-3.x.x
after unzip you have following files and folders
1. application
2. system
3. CI_user_guide
4. index.php
5. readme.rst
6. licence
7. gitignore
Step 3:
Copy application, system and index.php from unzipped folder
Step 4:
Open htdocs C:\xampp\htdocs folder
Step 5:
Paste files in htdocs folder
Step 6:
Open browser and write localhost in url bar
download CodeIgniter click on download link
Step 2:
unzip downloaded file CodeIgniter-3.x.x
after unzip you have following files and folders
1. application
2. system
3. CI_user_guide
4. index.php
5. readme.rst
6. licence
7. gitignore
Step 3:
Copy application, system and index.php from unzipped folder
Step 4:
Open htdocs C:\xampp\htdocs folder
Step 5:
Paste files in htdocs folder
Step 6:
Open browser and write localhost in url bar
It is my first post
Cog PHP is online free PHP solutions provider organization.
You can share any PHP problem with me and i will try to solve your problem.
thanks to every one
You can share any PHP problem with me and i will try to solve your problem.
thanks to every one
Subscribe to:
Posts (Atom)