Wednesday 27 March 2019
Sketch effect to a picture using photoshop
![](http://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieQnBSliKz82rpTOE_CwtauoRRhbVXzQKffAPOYJrMBCWXt8R-uY8Wj5VCbOBe8OSDzP0rwTYMX096G3LZSd-NCs8tLFpBtawL_VjoBPOzBFDXvVQJnUL_9BjVAn0tSV8/s113/girfa-face.jpg)
Sunday 24 March 2019
Website Login Page HTML
![](http://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieQnBSliKz82rpTOE_CwtauoRRhbVXzQKffAPOYJrMBCWXt8R-uY8Wj5VCbOBe8OSDzP0rwTYMX096G3LZSd-NCs8tLFpBtawL_VjoBPOzBFDXvVQJnUL_9BjVAn0tSV8/s113/girfa-face.jpg)
Friday 22 March 2019
Insert record in Database
This post will help you to learn the basics of inserting the record in the database using ci framework.
Table Structure
Culumn_Name
|
Data_type
|
Id
|
Auto number(int)
|
Name
|
Varchar(50)
|
Email
|
Varchar(50)
|
Phone
|
Varchar(15)
|
Msg
|
Varchar(255)
|
Configure Database
Goto App (Application in older CI) folder then open Config folder then Database.php file change db parameter as per your configuration.
Database.php
$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'username',
'password' => 'password',
'database' => 'db_name',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => (ENVIRONMENT !== 'production') ,
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'dsn' => '',
'hostname' => 'localhost',
'username' => 'username',
'password' => 'password',
'database' => 'db_name',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => (ENVIRONMENT !== 'production') ,
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
![](http://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieQnBSliKz82rpTOE_CwtauoRRhbVXzQKffAPOYJrMBCWXt8R-uY8Wj5VCbOBe8OSDzP0rwTYMX096G3LZSd-NCs8tLFpBtawL_VjoBPOzBFDXvVQJnUL_9BjVAn0tSV8/s113/girfa-face.jpg)
Sunday 3 March 2019
File upload with new name (PHP)
This post will help you to upload an image file to server with A new name . File name will be database auto increment field value . So no name conflict will be arise.
function SaveSliderImage($file)
{
$stmt = $this->conn->stmt_init();
if ($stmt->prepare("insert into ueks98_si_jsj_os9 (id,id1,id2) values(NULL,?,?)"))
{
//Get File Extension
$tmpstr=strtolower($_FILES[$file]['name']);
$extnsn=end(explode(".",$tmpstr));
function SaveSliderImage($file)
{
$stmt = $this->conn->stmt_init();
if ($stmt->prepare("insert into ueks98_si_jsj_os9 (id,id1,id2) values(NULL,?,?)"))
{
//Get File Extension
$tmpstr=strtolower($_FILES[$file]['name']);
$extnsn=end(explode(".",$tmpstr));
![](http://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieQnBSliKz82rpTOE_CwtauoRRhbVXzQKffAPOYJrMBCWXt8R-uY8Wj5VCbOBe8OSDzP0rwTYMX096G3LZSd-NCs8tLFpBtawL_VjoBPOzBFDXvVQJnUL_9BjVAn0tSV8/s113/girfa-face.jpg)
Subscribe to:
Posts (Atom)