User Profile

Collapse

Profile Sidebar

Collapse
dhillarun
dhillarun
Last Activity: Jun 9 '10, 12:42 PM
Joined: Mar 12 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Thanks ... It's working now....
    See more | Go to post

    Leave a comment:


  • How to test Procedural code using "PHPUnit" Framework?

    Hi All,

    I have written some PHPUnit test code by using classes.
    test.php
    Code:
     
    <?php
    require_once('PHPUnit/Framework.php');
    include("hello.php");
     class Test1 extends  PHPUnit_Framework_TestCase
     {
    				
    		function testAdd() {
    			$a=3;
    			$b=6;
    			 $r=add($a,$b);
    			$this->assertNotNull($r);
    			$this->assertEquals($r,9);
    			$this->assertTrue($r>0);
    ...
    See more | Go to post

  • Actually I need to update one table value into another table value.
    Sry, I made that mistake . it should be 'tab2' only.

    testdb=# \d tab2
    Table "public.tab 2"
    Column | Type | Modifiers
    --------+---------+-----------
    a | integer |
    b | integer |
    c | integer |...
    See more | Go to post

    Leave a comment:


  • Sorry I am getting following error.

    testdb=# update tab1 set tab1.c=tab2.c from tab2 where tab1.a=tab2.a;
    ERROR: syntax error at or near "." at character 21...
    See more | Go to post

    Leave a comment:


  • Updating a coloumn value by comparing coloumns from two tables

    Hi all,

    I need to update field three of first table with field three of second
    tables for all records that match field one of first table with field
    one of second table (both are primary key for each table and are same).

    I need to write an ANSI sql query to do this job.

    I tried follwing , but it didn't work.

    update tab1 set t1.c=t2.c from tab1 t1,tab2 t2 where t1.a=t2.a;
    ...
    See more | Go to post

  • Accessing a HTML element using javacript variable

    Hi All,

    I am passing ID of the HTML SELECT element to a javascript function.
    In that function I need to access the value selected in that select box.
    I tried the following code. but it didn't work.

    Code:
    function save()
    { 
       var x='bid';
       res=document.bform.x.options[document.x.selectedIndex].value;
       alert(res);
    }
    [HTML]
    <form name="bform"...
    See more | Go to post

  • dhillarun
    replied to Unable to connect to PostgreSql database.
    in PHP
    Actually, I am not able to connect to database itself.

    As I am not able to create connection, the connection handle is not having proper value.

    So, I am not able to successfully execute pg_result_error () (i.e.,displays nothing)....
    See more | Go to post

    Leave a comment:


  • dhillarun
    started a topic How to Disable Applet from Cached ?
    in Java

    How to Disable Applet from Cached ?

    Hi all,

    Problem (in short):

    Disabling the applet cache.

    Problem (in detail):

    I have developed an Applet application. I am creating the contents of the applet by reading a text file in the server.
    After making the changes, I am saving the modified data from applet to the same file in the server.

    After saving the changes, if I am visiting the same page once again, the browser...
    See more | Go to post

  • dhillarun
    started a topic Unable to connect to PostgreSql database.
    in PHP

    Unable to connect to PostgreSql database.

    Hi All,

    I am not able to connect to PostgreSql databse,while I am using "pg_connect ()" function . My usage is as follows,
    [PHP]
    pg_connect("hos t=localhost port=5432 dbname=mydb ");
    [/PHP]

    but If I am deleting the "host" and adding the "user" it is getting connected. But some tables I am not able to access.

    [PHP]pg_connect(" port=5432 dbname=mydb...
    See more | Go to post

  • dhillarun
    started a topic How to get return values from Java Applet?
    in PHP

    How to get return values from Java Applet?

    Hi all,

    I am displaying an applet and passing values to it by using a php file.
    I am sending the values to the applets by using PARAM (HTML) tag.

    But , I want to get some values into PHP from applet, How can we do it?

    Pl. do reply me.
    See more | Go to post

  • dhillarun
    replied to Whats WML?
    http://en.wikipedia.org/wiki/Wireless_Markup_Language...
    See more | Go to post

    Leave a comment:


  • dhillarun
    replied to "header()"function related question
    in PHP
    Accept or Reject buttons will ensure only whether the user wants to download or not. But I wanted to know predict the button clicked in the "Save-As" dialog-box.

    Anyway, as per your answer I came to know that, the download dialog-box action is out of our control. So thanks.

    Thnx for all your replies....
    See more | Go to post

    Leave a comment:


  • dhillarun
    replied to WML (or) XHTML ?
    Actually, I want to know the language which will be compatible with (or) suportted by most of the WAP Browsers.
    See more | Go to post

    Leave a comment:


  • As the javascript is running in the client side,some mobile browsers will not support "Javascript ". So I want to achieve the same in the server side itself.

    (i.e) In the server, I want to know which device (whether mobile or Desktop Computer) is acessing the website.

    If the device accessing the website is a mobile or PDA , then it should redirect into a PHP page which will produce WML code.

    Otherwise...
    See more | Go to post

    Leave a comment:


  • dhillarun
    started a topic how to detect page request is from mobile or PC?
    in PHP

    how to detect page request is from mobile or PC?

    Hi Everybody,

    I have developed a website using PHP, which will produce HTML code.

    But I have some pages in PHP ,which will produce WML code for mobile browsers.

    I want to redirect to WML page,if the site is accessed from the mobile. Otherwise it should display HTML page if the site is accessed from Desktop PC.

    Please do reply me.

    Arun.
    See more | Go to post

  • dhillarun
    replied to "header()"function related question
    in PHP
    Code:
    function download()
    {
            
            header("Pragma: public");
            header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
            header("Expires: 0");
    
            header("Content-Transfer-Encoding: binary");
                    header('Content-Disposition:' . $this->cont_dis .';'
                            . ' filename="'
    ...
    See more | Go to post

    Leave a comment:


  • dhillarun
    started a topic WML (or) XHTML ?

    WML (or) XHTML ?

    Hi,

    I want to develope a effective mobile compatible site.

    But, I don't know which markup language will be efficient and compactible with most of the browsers.

    Should I use WML or XHTML MP ?

    Which will provide higher level of compactible with most of the browsers?

    Pl do reply me.
    See more | Go to post

  • dhillarun
    started a topic "header()"function related question
    in PHP

    "header()"function related question

    Hi everybody,

    I displaying file download window("save-as dialog box") using PHP "header()" function.

    How to track that user have clicked "save" button or "cancel" button???
    See more | Go to post
No activity results to display
Show More
Working...