Code: <div class="container"> <div id="preview"></div> <form id="form" method="post" enctype="multipart/form-data"> <div class="form-body"> <div class="form-group"> <label class="control-label col-md-3">Title</label> <div class="col-md-9"> <input name="title" placeholder="Holiday" class="form-control" type="text"> </div> </div> </div> <div class="form-body"> <div class="form-group"> <label class="control-label col-md-3">Image1</label> <div class="col-md-9"> <input type='file' name='image1' class='form-control'> <img class="image1 img-thumbnail" style="display:none" alt="image1" width="100" height="100" /> </div> </div> </div> <div class="form-body"> <div class="form-group"> <label class="control-label col-md-3">Image2</label> <div class="col-md-9"> <input type='file' name='image2' class='form-control'> <img class="image2 img-thumbnail" style="display:none" alt="image2" width="100" height="100" /> </div> </div> </div> <button type="button" id="btnSave" onclick="save()" class="btn btn-primary">Save</button> </form> <div id="err"></div> </div> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script type="text/javascript"> function save() { $.ajax ({ url: "ajax.php", type: "POST", data: new FormData(this), …

Member Avatar
+0 forum 0

http://stackoverflow.com/questions/32432100/facebook-after-login-redirects-to-codeigniter-3

Member Avatar
Member Avatar
+0 forum 4

Hi please go through this issue and suggest me http://stackoverflow.com/questions/32294820/where-to-locate-facebook-sdk-v4-vendor-directory-in-codeigniter-3-0

Member Avatar
Member Avatar
+0 forum 1

This is my array Array ( [33] => Array ( [for sale] => Array ( [1] => villas [2] => plots [3] => flats [4] => houses ) ) [34] => Array ( [for rent] => Array ( [5] => in house [6] => appartment [7] => godams ) ) [35] => Array ( [hostels] => Array ( [8] => boys [9] => girls ) ) [36] => Array ( [pg accommodation] => Array ( [10] => boys [11] => girls ) ) ) and my php code is this.. while($row = mysql_fetch_array($select4)){ $final[$row['child_category_id']][$row['child_category_name']][$row['sub_child1_category_id']] = $row['sub_child1_category_name']; } echo '<pre>';print_r($final);echo'</pre>'; foreach($final …

Member Avatar
Member Avatar
+0 forum 1

<div class="hor-menu "> <ul class="nav navbar-nav"> <li class="active"> <a href="index.html">Dashboard</a> </li> <li class="menu-dropdown mega-menu-dropdown"> <a data-hover="megamenu-dropdown" data-close-others="true" data-toggle="dropdown" href="javascript:;" class="dropdown-toggle"> Categories <i class="fa fa-angle-down"></i> </a> <ul class="dropdown-menu" style="min-width: 710px"> <li> <div class="mega-menu-content"> <div class="row"> <div class="col-md-4"> <ul class="mega-menu-submenu"> <li> <h3>Level 1</h3> </li> <li> <a href="add_category.php" class="iconify"> <i class="icon-plus"></i> Add Categories </a> </li> <li> <a href="ecommerce_orders.html" class="iconify"> <i class="icon-basket"></i> Manage Categories </a> </li> <li> <a href="ecommerce_orders_view.html" class="iconify"> <i class="icon-tag"></i> Categories View </a> </li> <li> <a href="ecommerce_products.html" class="iconify"> <i class="icon-handbag"></i> Manage Categories </a> </li> <li> <a href="ecommerce_products_edit.html" class="iconify"> <i class="icon-pencil"></i> Categories Edit </a> </li> </ul> </div> <div class="col-md-4"> <ul class="mega-menu-submenu"> <li> <h3>Level …

Member Avatar
Member Avatar
-2 forum 5

I need After-ship API integration for e-commerce website. https://www.aftership.com/docs/api/4 which will be useful in tracking the order status. I have downloaded sdk from https://github.com/abishekrsrikaanth/aftership-php-sdk I have given the api key in AfterShip/Core/request.php. But its not working can anyone suggest me steps to integrate it.

Member Avatar
Member Avatar
+0 forum 4

Which one provides more secuity, And mostly used in companies.Please Suggest 1.laravel 2.Zend 3.YII

Member Avatar
Member Avatar
+0 forum 4

I am implementing stay login functionality using codeingiter 3 Steps: 1. If user signin's successfully , checking the remember me checkbox. 2. Then i am setting 2 cookies for that user. 3. $cookie 1: is 128 length random string ,(series) 4. $cookie 2: is the hash of (email,password,ip,useragent). (token) 5. Now i am storing the series , hash(token) in a table <user_cookie>. <user_cookies> user_id(fk) series(128 varchar) token(200 varchar) Now my doubt is how should validate autologin, when user visits my webpage next time? $rand128_hex = bin2hex(openssl_random_pseudo_bytes(16)); $cookie1 = array( 'name' => 'series', 'value' => $rand128_hex, 'expire' => '86400' ); $cookie2 …

Member Avatar
+0 forum 0

I am using codeigniter 3 And i am trying to build stay signing functionality In hash_hmac() i am passing an array , but i want to convert it into a string , Can any one tell me how to convert it? /* | --------------------------------------------------------------------------- | REMEMBER ME TOKEN | --------------------------------------------------------------------------- | When a user logs in and selects the remember me option then you will generate a key using PHP's hash_hmac function. | The data will be the IP address, browser name, username and password and the key (hash_hmac's 3rd parameter) | will be a random string of any length …

Member Avatar
Member Avatar
+0 forum 1

My Model : admin_login_model.php Unable to view them in browser as shown in the image below http://i.stack.imgur.com/fychj.png i am working on CodeIgniter version 3 Can anyone tell me what is the issue if ($email === $admin_email && $password = $password) { echo 'credential match'; $this->load->helper('cookie'); if ($remember_me == '1') { $email = $this->input->post('email'); $password = $this->input->post('password'); $remember = $this->input->post('remember_me'); $cookie1 = array( 'name' => 'email', 'value' => $email, 'expire' => '86400', 'domain' => base_url(), 'path' => '/admin/', 'prefix' => 'myprefix_', 'secure' => TRUE ); $this->input->set_cookie($cookie1); echo "<pre>"; var_dump($cookie1); echo"</pre>"; echo 'Checked'; } } return TRUE; // if credential matches } …

Member Avatar
Member Avatar
+0 forum 2

I am using codeigniter if ($this->form_validation->run() ) always returns false. please help me out with this Here is my controller and view page as shown bellow This is controller admin.php <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Admin extends CI_Controller { public function index() { $this->login(); } public function login() { //echo 'This is admin controller login function'; $this->load->view('admin/admin_login'); } public function login_validation() { $this->load->helper('form'); $this->load->library('form_validation'); $this->form_validation->set_rules('email', 'Email', 'trim|required|valid_email|xss_clean'); $this->form_validation->set_rules('password', 'Password', 'trim|required|sha1'); $email = $this->input->post('email'); $password = $this->input->post('password'); print $password . $email; if ($this->form_validation->run() == TRUE) { //redirect('admin/profile'); $this->load->view('success'); } else { $this->load->view('errorrr'); } } } admin_login.php is …

Member Avatar
Member Avatar
+0 forum 2

i am creating an admin panel in my project. So to sepeate admin files i am creating admin folder in my views can i also create admin folder in my controller and model. to seperate admin related file? is that a correct procedure?

Member Avatar
Member Avatar
+0 forum 2

I have a gallery in grid. For eg: https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSegNVXMSnTRzHETnAjZXCd6siwHQysMXc_jp1OyiSDie2_9jhsIg Each row can cont max of 4 images. I have written while loop. i want to get the total count of images in each row For eg: row1 -> 4 (images) row2 -> 3 (images) <!-----------------------------------------------------------------------------> <div class="main_bg"> <div class="top_bg1"> <div class=""> <div class="main"> <div class="top_main"> <h1>Today's Offer</h1> <div class="clear"></div> </div> <?php $query1 = mysql_query("select * from offer"); $x = 0; while($row = mysql_fetch_array($query1)){ ?> <?php if($x==0){ ?> <div class="grids_of_3"> <?php } ?> <!-- start grids_of_3 --> <div class="grid1_of_3"> <a href="offer_details.php?fid=<?php echo $row['offer_id']; ?>"> <?php echo "<img src=admin/offer/".$row['image']." />"; ?> <h4><?php …

Member Avatar
Member Avatar
+0 forum 2

$descrr = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum." $descrr = stripslashes($_POST['descr']); $insert = mysql_query("insert into …

Member Avatar
Member Avatar
+0 forum 2

$descrr = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum." $descrr = stripslashes($_POST['descr']); $insert = mysql_query("insert into …

Member Avatar
Member Avatar
+0 forum 2

can anyone tell best cms for employee time sheet management

Member Avatar
Member Avatar
+0 forum 3

I need Live Webcam Video Streaming Script for a tv channel website pl help

Member Avatar
Member Avatar
+0 forum 2

Problem:On click logout it again shows the html page content which i dont want to show <?php session_start(); if(isset($_GET['action']) == 'logout'){ session_destroy(); unset($_SESSION['user']); unset($_SESSION['pass']); echo '<pre>'; print_r($_SESSION); //header('location:index.php/'); exit(); } if(isset($_SESSION['user'])== ' '){ header('location:index.php'); exit(); } if( !( isset($_SERVER['PHP_AUTH_USER']) && $_SERVER['PHP_AUTH_USER'] == "a" && $_SERVER['PHP_AUTH_PW'] == "a" ) ){ header('WWW-Authenticate: Basic realm="My Realm"'); header('HTTP/1.0 401 Unauthorized'); echo 'You are not authenticated'; exit; }else{ $_SESSION['user'] = $_SERVER['PHP_AUTH_USER']; $_SESSION['pass'] = $_SERVER['PHP_AUTH_PW']; ?> html code

Member Avatar
Member Avatar
+0 forum 1

<?php include('db.php'); $query=mysqli_query($con,"select * from reg"); while($row=mysqli_fetch_array($query)) { echo $id; echo $name; } ?> i want to display it as follows: 1.chaitanya 2.swati 3.rena 4.geeta

Member Avatar
Member Avatar
+0 forum 5

i want to display this slideshow dynamically please help me. I am getting more than 3 images if i put dynamic code <div class="row"> <div id="carousel-reviews" class="carousel slide" data-ride="carousel"> <div class="carousel-inner"> <div class="item active"> <!--------------------------------> <div class="col-md-4 col-sm-6"> <div class="block-text rel zmin"> <a title="" href="#">Active1</a> </div> </div> <!--------------------------------> <div class="col-md-4 col-sm-6 hidden-xs"> <div class="block-text rel zmin"> <a title="" href="#">Avtive2</a> </div> </div> <!--------------------------------> <div class="col-md-4 col-sm-6 hidden-sm hidden-xs"> <div class="block-text rel zmin"> <a title="" href="#">Avtive3</a> </div> </div> <!--------------------------------> </div><!------------------------------//item1-------------------------------> </div> <!---carousel-reviews ----> <a class="left carousel-control" href="#carousel-reviews" role="button" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left"></span> </a> <a class="right carousel-control" href="#carousel-reviews" role="button" data-slide="next"> <span class="glyphicon glyphicon-chevron-right"></span> …

Member Avatar
Member Avatar
+0 forum 3

How to enable Designer Mode in phpMyAdmin...i am on main server not on local server

Member Avatar
Member Avatar
+0 forum 3

I want to display 3 images at a time in a slideshow(testimonial)..but remaing images also getting display's at the bottom of slideshow..i have attached image please chaeck.... <div class="row"> <div id="carousel-reviews" class="carousel slide" data-ride="carousel"> <div class="carousel-inner"> <div class="item active"> <?php $sel = mysql_query("select * from alumini"); $output = ''; $x = 0; while($row = mysql_fetch_array($sel)){ ?> <!-------------------------------------ITEM 1----------------------------------> <div class="col-md-4 col-sm-6"> <div class="block-text rel zmin"> <?php echo $row['alumini_name']; ?> <div class="mark"><?php echo $row['year1'];?> </div> <p><?php echo $row['descr'];?></p> <ins class="ab zmin sprite sprite-i-triangle block"></ins> </div> <div class="person-text rel"> <img alt="" src="http://myinstantcms.ru/images/img15.png"> <a title="" href="#"><?php echo $row['alumini_name']; ?></a> </div> </div> <?php } …

Member Avatar
Member Avatar
+0 forum 8

<?php $query=mysqli_query($con,"select * from reg where user_id = '".$_GET['id']."' "); $row=mysqli_fetch_array($query); ?> <select name="sex" id="opt2"> <option value="">select</option> <option value="Male" selected="selected">Male</option> <option value="Female" selected="selected">Female</option> </select>

Member Avatar
Member Avatar
+0 forum 4

how to do content scrapping or crawling in php Can any one suggest me a vedio tutorial

Member Avatar
Member Avatar
+0 forum 1

I have a (2gb)txt file which has thousands of queries, i need to read those file queries and split those queries into n no. of txt files..and save them in a folder... can any one post an example or guide

Member Avatar
Member Avatar
+0 forum 11

move_uploaded_file gives Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error. More information about this error may be available in the server error log. <?php /***********************************INSERT************************************************/ if($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['submit']) == 'POST'){ $valid_formats = array("jpg", "png", "gif", "bmp"); $name = $_FILES["img"]["name"]; $size = $_FILES["img"]["size"]; //$temp = explode(".",$name); //$ext = end($temp); $target ="/uploads/$_FILES["img"]["tmp_name"]; move_uploaded_file($_FILES["img"]["tmp_name"],$target_path); } ?> <form role="form" method="post" action="clients.php" enctype="multipart/form-data"> <table width="70%" height="30%" align="center"> …

Member Avatar
Member Avatar
+0 forum 5

length should be [2-10], should accept [a-zA-z0-9],accept one space in between characters. eg: timesheet 2 shanti chakra shantichakra shantichakra2

Member Avatar
Member Avatar
+0 forum 11

what is the difference between FTP,SFTP client can any one explain me briefly

Member Avatar
Member Avatar
+0 forum 2

can any one explain in when to use left join and right join i am quit confused with this

Member Avatar
Member Avatar
+0 forum 1

I have attached an image file i want to escape first there rows and import data from sudha---- if(isset($_POST['submit'])) { $account_type = $_POST['account_type']; $fname = $_FILES['sel_file']['name']; echo '<center class=green>Uploaded file name is: '.$fname.'</center> '; $chk_ext = explode(".",$fname); if(strtolower(end($chk_ext)) == "csv") { $filename = $_FILES['sel_file']['tmp_name']; $handle = fopen($filename, "r"); fgetcsv($handle); //skip the reading of the first line from the csv file while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { $var = $data[3]; // dd.mm.yy $data[3] = implode("-", array_reverse(explode(".", $var))); // converted -> yyy-mm-dd /********************************PURCHASE***********/ if($account_type == 1){ $sql = "INSERT into purchase(party_name,tin,invoice,date,quantity,amount) values ('".$data[0]."','".$data[1]."','".$data[2]."','".$data[3]."','".$data[4]."','".$data[5]."')"; } /********************************SALES***********/ if($account_type == 2){ $sql …

Member Avatar
Member Avatar
+0 forum 1

The End.