User Profile

Collapse

Profile Sidebar

Collapse
viana2020
viana2020
Last Activity: Dec 30 '15, 09:33 AM
Joined: Aug 6 '15
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • viana2020
    started a topic onchange event to populate data

    onchange event to populate data

    i have two inputs that i want an onchange function, when you input number of hours the NPCode should change to present,otherwi se it should be absent.that means if no hours is submitted then it should, by default be Absent. (myTotalHrs is input box while NpCode is a Dropdown.) P.S view attachment

    Code:
    $TotalHrs = array(
            'name'          => 'AddTotalHrs['. $rowcount .']',
            'value'         => '',
    ...
    See more | Go to post

  • i corrected it is now working.
    See more | Go to post

    Leave a comment:


  • i don't seem to find error, Undefined variable: EmpDefaultRestDay,week&getDataValues

    Code:
    $optWeek = array(0=>'Please Select');
    for($i=1;$i<=52;$i++)
    {
    $optWeek[$i] = 'Wk - ' .  $i;
    }
    
    for($i=-1;$i<=0;$i++)
    {
    $optYear[date("Y")+$i] =  date("Y")+$i;
    }
    $optDays = array(
    	'0'=>'Please Select',
            'SUN'  => 'Sunday',
            'MON'  => 'Monday',
            'TUE'  => 'Tuesday',
            'WED'  =>
    ...
    See more | Go to post

  • Severity: Warning, when i try to update am using codeigniter.

    Message: Missing argument 16 for Attendance_mode l::adddb(), called in /var/www/html/payroll/application/controllers/Attendance.php on line 48 and defined

    Filename: models/Attendance_mode l.php

    Line Number: 81

    Backtrace:

    File: /var/www/html/payroll/application/models/Attendance_mode l.php
    Line: 81
    Function: _error_handler

    File: /var/www/html/payroll/application/controllers/Attendance.php...
    See more | Go to post

  • Why is my data not displaying on form? below is the MVC.

    my update and delete also giving errors.someone help to figure out where am wrong.


    **controller**

    Code:
    <?php
    defined('BASEPATH') OR exit('No direct script access allowed');
    
    class Attendance extends CI_Controller {
    public function index()
            {
       
                    if($this->input->post('cancel')){
                    $this->newform();
                    }
    ...
    See more | Go to post
    Last edited by Rabbit; Oct 27 '15, 03:52 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.

  • undefined offset 0, someone help identify where the error is. am using codeigniter.

    Code:
    if(isset($getall))
    {
    
    $PostDate = array(
            'name'          => 'PostDate',
            'value'         => $getall['0']['PostDate'],
    
    );
    $LocCode = array(
            'name'          => 'LocCode',
            'value'         => $getall['0']['LocCode'],
    
    );
    
    $DeptCode = array(
            'name'          => 'DeptCode',
            'value'         => $getall['0']['DeptCode'],
    ...
    See more | Go to post
    Last edited by RonB; Oct 16 '15, 01:35 PM. Reason: Please use the code tags!

  • viana2020
    replied to change from PDO to MSQLI
    it is because most of my pages are in MYSQLI except the login. changing all the pages to PDO might take longer
    See more | Go to post

    Leave a comment:


  • viana2020
    started a topic change from PDO to MSQLI

    change from PDO to MSQLI

    how do i change this to mysqli?


    Code:
    <?php 
    	require 'connect.php';
    
    	session_start();
    
    	$username = "";
    	$password = "";
    	
    	if(isset($_POST['username'])){
    		$username = $_POST['username'];
    	}
    	if (isset($_POST['password'])) {
    		$password = $_POST['password'];
    
    	}
    	
    	echo $username ." : ".$password;
    ...
    See more | Go to post
    Last edited by Rabbit; Sep 11 '15, 03:38 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.

  • thanks Luuk for the correction.but now how do i insert that in DB? please
    See more | Go to post

    Leave a comment:


  • how to auto generate a Varchar in phpmyadmin database

    i am trying to feed a number to database in this case my reference number which is of a (AAA/BBB/28AUG2015 - 4082) format,
    which should be selected by user,and the date should be the system date while the last number should be auto-generated in that sequence.
    the 1st and 2nd values are fixed.kindly i am unable to do that on phpmyadmin DB someone help please.
    See more | Go to post

  • viana2020
    replied to change password
    in PHP
    thanks it's done and working
    See more | Go to post

    Leave a comment:


  • viana2020
    started a topic change password
    in PHP

    change password

    how do i add a change password code to my login form?


    Code:
    <html>
        <head>
        <meta id="_moz_html_fragment">
        </head>
        <body style="background-image:url(ocean5.jpeg)">
        <div style="text-align: center;"><br>
        <br>
        <br>
        <br>
        <big><big>LETTER&nbsp; HEAD
    ...
    See more | Go to post
    Last edited by Rabbit; Aug 13 '15, 03:36 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.

  • viana2020
    started a topic user restriction (PHP, MYSQL,HTML)
    in PHP

    user restriction (PHP, MYSQL,HTML)

    hello everyone, kindly help me. i have three tables that display what is saved in database. (details_letter Table, Address_details Table, and Signatories Table) and Three users(Manager, HR, Legal officer) currently when the three users are logged in, they are able to view each others' saved content.how can i create it in a way that the manager can view HR and Legal officer's saved content, but HR and Legal officer can't view each others' saved database...
    See more | Go to post

  • viana2020
    started a topic directing users to specific pages
    in PHP

    directing users to specific pages

    hey,how can i direct users to their specific pages on login?and to make users only view their entries and not anyone else's. below is my html code which is loggin in but to a common page.





    Code:
    <html>
    <head>
    <meta id="_moz_html_fragment">
    </head>
    <body style="background-image:url(ocean5.jpeg)">
    <div style="text-align: center;"><br>
    ...
    See more | Go to post
    Last edited by Rabbit; Aug 6 '15, 04:09 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.
No activity results to display
Show More
Working...