User Profile

Collapse

Profile Sidebar

Collapse
raamay
raamay
Last Activity: Nov 3 '16, 08:44 AM
Joined: Feb 7 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • raamay
    started a topic Pass multiple queries to a view in Laravel 5
    in PHP

    Pass multiple queries to a view in Laravel 5

    I would like to pass multiple queries from controller like select, count, sum to a single view in Laravel 5. I would also like to know how each value can be retrieved in the view.

    Example:

    Code:
    select count(a) as c from table
    select sum(a) as s from table
    And retrieve each of the returned values in view:

    Code:
    {{ $data->c; }}
    {{ $data->s; }}
    See more | Go to post

  • raamay
    started a topic laravel session logout not working
    in PHP

    laravel session logout not working

    I am using laravel inbuilt authentication but came across with the logout problem. Even after the logout i can go into dashboard. I tried flushing the session but it doesnt work. The middleware for the dashboard page is auth. Iam sure many have come across the cited bug .... kindly help me how to resolve it.

    app/Http/routes.php

    Code:
    Route::get('/', 'Auth\AuthController@getLogin');
    Route::post('/', 'Auth\AuthController@postLogin');
    ...
    See more | Go to post

  • will it be fine if i created another virtual host to take care of the request from the ip address?
    See more | Go to post

    Leave a comment:


  • any other alternatives?
    See more | Go to post

    Leave a comment:


  • Map to different index page when user enters ip in apache2

    Hello Experts, I have setup two virtual host pointing to same content mapped to ip 192.168.1.100. Everything works fine. But now my requirement is that when user enters the ip address instead of the domain name, the server should serve a different page instead of the index page of the domain. For now if i enter the domain name http://test.com and when i enter http://192.168.1.100, I am served with the index.html page of virtual host. Now, what i...
    See more | Go to post

  • raamay
    started a topic xsl problem with xsd
    in XML

    xsl problem with xsd

    hi guys, i have the following xml file:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet href="election.xsl" type="text/xsl" ?>
    <?xml-stylesheet type="text/xsl" href="election.xsl"?>
    <election>
    	<poll>
    		<province>Province 1</province>
    		<district>District 1</district>
    ...
    See more | Go to post

  • raamay
    started a topic SSTab Control

    SSTab Control

    Hi experts, do we have SSTab Control in Visual Studio? i wanted to use SSTab control instead of TabControl because SSTab looks better than Tab Control.
    See more | Go to post

  • raamay
    started a topic Connection String

    Connection String

    Code:
    Connection.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Application.StartupPath + "\\POS.mdb"
    Code:
    Connection.ConnectionString = "DSN=db"
    Hi experts, i don't understand how to make our connection string dynamic. With it i mean, only the second method above (with use of DSN) i can do that. Whereas, in the first method i have to hardcode the connection string which...
    See more | Go to post

  • raamay
    started a topic singly linked list in sorted order
    in Java

    singly linked list in sorted order

    i have been given an assignment to create a singly linked list which maintains order. but i am not sure whether to use a sorting method or to take care of the sorting while adding the values in the list. i guess i am correct to decide the second option because if we insert values according to the order, then the list is automatically a sorted one.

    my code for now is as below:
    Link.java
    Code:
    package LinkedList;
    ...
    See more | Go to post

  • raamay
    started a topic ajax result set for multiple checkbox values

    ajax result set for multiple checkbox values

    I have multiple check box and when i check one of it, ajax call is triggered to fetch record pertaining to that id of the check box. Now my problem is that i can have multiple check box being checked and in that case i find the ajax returning records of the last box checked. db records pertaining to other check box is lost.

    Can i have a way to return all the db records pertaining to all check box checked(using ajax)?
    See more | Go to post

  • raamay
    replied to how to add two numbers using stack in java
    in Java
    its not a task assigned but i am learning it just to see how i can perform stack operations
    See more | Go to post

    Leave a comment:


  • raamay
    replied to how to add two numbers using stack in java
    in Java
    Ok, the following code is missing only the remainder. I want to know how to add a remainder of previous operation to new operation. suppose below 7+6=13, i've pushed the 3 to stack and now i want the 1 to be added to (6+2)+1=9
    Code:
    package practical;
    import java.util.*;
    
    
    public class StackAddAB {
    	public static void main(String[] args){
    		int a = 1226;
    		int b = 4567;
    		int result = 0;
    ...
    See more | Go to post

    Leave a comment:


  • raamay
    started a topic how to add two numbers using stack in java
    in Java

    how to add two numbers using stack in java

    hi guys, great to be back in this site after a long time. well, i am learning java and want to add two numbers using stack.
    int a= 123;
    int b=4567;
    i want each of the values to read one by one and push to the stack. so i will have one stack to store "a" value and another to store "b" value. then i want to add the top of stack values and store it in third stack and then once the operation is over, i need to...
    See more | Go to post

  • raamay
    started a topic error even after instantiating the class
    in PHP

    error even after instantiating the class

    hello everyone, i have a class for form validation as below:
    Code:
    <?php
    defined( '_JEXEC' ) or die( 'Restricted access' );
    
    require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
    require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
    require_once ( JPATH_BASE .DS.'configuration.php' );
    
    $mainframe =& JFactory::getApplication('site');
    $mainframe->initialise();
    ...
    See more | Go to post

  • ya Expert gits, you are right but you may be aware Joomla has limited resources to refer to. It would be easy for us to use the built in joomla validation but i didn't know how to create custom validation like above using the built in support.
    See more | Go to post

    Leave a comment:


  • the above javascript code is working perfectly now. This is to inform all that if you are using joomla and if you don't need mootools validation then please disable it so that your custom javascript validation like above works. I disabled the use of mootools and now its working well.
    See more | Go to post

    Leave a comment:


  • it works in IE7 too but still not working in FF 9 or 14 and Chrome. i am sure it has something to do with joomla only. Since this forum is not for joomla, so i don't understand how to solve this problem.
    See more | Go to post

    Leave a comment:


  • i tried your solution rabbit but still the result is out of question. But please note that the validation works in IE7 and only in firefox and chrome it has no effect.

    does it have anything to do with mootools in joomla? but infact i ve not used the joomla validation
    See more | Go to post

    Leave a comment:


  • does anybody have any idea? i too tried the function as suggested by RABBIT and it works in a mock html page but when i implement it in my actual form it doesn't.
    See more | Go to post

    Leave a comment:


  • Code:
    <form method="POST" name="form" id="form" onsubmit='return validate()'>
        <div align="center">
            <table id="mytable">
    			<tr>
    				<td>
    				<div align="center">
    				<table style="width:42%">
    			    <tr>
    				    <td colspan="2"><h2 align="center">Search
    ...
    See more | Go to post
    Last edited by gits; Aug 23 '12, 07:24 AM. Reason: added code tags

    Leave a comment:

No activity results to display
Show More
Working...