User Profile

Collapse

Profile Sidebar

Collapse
arunj82
arunj82
Last Activity: Jan 11 '09, 06:49 PM
Joined: Mar 5 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • arunj82
    started a topic Session id is not expiring in cakephp
    in PHP

    Session id is not expiring in cakephp

    Hi All,

    I am doing a project in cakephp. What my problem is when ever i close my browser and when i reopen it, session id(i.e userAgent) in cakephp is not changing. I want to use this session id for tracking visitor counts. But when i close the browser and open again, session id is not changing...
    I get the session id using this

    print_r($this->Session->read());

    in AppController. Any help would...
    See more | Go to post

  • arunj82
    started a topic URL rewrite in htaccesss

    URL rewrite in htaccesss

    Hi all,

    I have a doubt in redirecting a url in htaccess file. for example,

    http://example.com/subfolder1/subfolder2 to http://www.example.com/subfolder1/subfolder2

    How can do that in htaccess. I have tried in google but still not able to find a

    proper solution. Anybody else pls help me

    I am using cakephp for my application. And one more problem for me is if i type...
    See more | Go to post

  • arunj82
    started a topic Finding Every 2 days in a month
    in PHP

    Finding Every 2 days in a month

    In my project i have to mail for every two days in a month. How do i code it?

    Please help me...
    See more | Go to post

  • arunj82
    replied to Upload Image Probelm
    in PHP
    I hope this code might help u. pls check it

    Code:
    <?php
    $con=mysql_connect("localhost", "root", "simply123") or die("Could not connect: " . mysql_error());
    mysql_select_db("minedb");
    
    echo "Epoch is ".$epoch = date(U);
    $uploadDir="uploads/";
    
    if($_REQUEST['add'])
    {
    					if (isset($_FILES['photo1']['name']))
    ...
    See more | Go to post

    Leave a comment:


  • arunj82
    replied to Tab key to create rows
    Code:
          <script type="text/javascript">
          function add_row(idx) {
              var table   = document.getElementById('tbl');
              var row     = table.getElementsByTagName('tr')[idx];
              var new_row = row.cloneNode(true);
              table.getElementsByTagName('tbody')[0].appendChild(new_row);
          }
    
    	  function add_row_event(e) {
          var val;
    ...
    See more | Go to post

    Leave a comment:


  • arunj82
    replied to set focus within a php form
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE> New Document </TITLE>
    <META NAME="Generator" CONTENT="EditPlus">
    <META NAME="Author" CONTENT="">
    <META NAME="Keywords" CONTENT="">
    <META NAME="Description" CONTENT="">
    ...
    See more | Go to post

    Leave a comment:


  • arunj82
    replied to Help in mysql query
    in PHP
    Hi,
    I have used WHERE but not working. Reply me pls.
    See more | Go to post

    Leave a comment:


  • arunj82
    replied to PHP session variable problem
    in PHP
    Hi,
    Dont use 0 inside $_SESSION['']. I think '0' or '1' indicates true or false. This might be the problem. Instead of 0 I used the variable value inside session, now it is displaying the set.


    This code works.

    Code:
    <?php
    session_start();
    $_SESSION["value"] = "Tested" ;
    echo "Session value is ".$_SESSION["value"];
    echo "<BR>";
    ...
    See more | Go to post

    Leave a comment:


  • arunj82
    started a topic Help in mysql query
    in PHP

    Help in mysql query

    Hi,
    I have two tables channels and subscribers. Channels has fields like channelid, channelname,use rid,added_time etc. The subscriber table has id,channelid,su bscriber_id.
    Now i want to pick the channels which has userid=1 and subscriber_id from tbl_subscribers where subscriber_id=1 .

    I have tried the following query.

    select t1.channel_name ,t2.channelid from tbl_create_chan nel...
    See more | Go to post

  • arunj82
    replied to how to delete selected records from database
    in PHP
    Hi,

    Here i m giving a example for deleting all records and also u can delete a single record. U check it and if u have any doubt u pls message me. If you press all button in the headings, it will delete all records.


    Sample Codings:

    <?php
    $con=mysql_conn ect("localhost" ,"root","simply 123") or die(mysql_error ());
    mysql_select_db ("databasename" ,$con)...
    See more | Go to post

    Leave a comment:


  • arunj82
    replied to how to get url
    in PHP
    Hi,
    This is the coding i got in net. But it works well.
    [CODE=php] <?php
    $_SERVER['FULL_URL'] = 'http';
    if($_SERVER['HTTPS']=='on'){$_SERVE R['FULL_URL'] .= 's';}
    $_SERVER['FULL_URL'] .= '://';
    if($_SERVER['SERVER_PORT']!='80') $_SERVER['FULL_URL'] .= $_SERVER['HTTP_HOST'].':'.$_SERVER['SERVER_PORT'].$_SERVER['SCRIPT_NAME'];
    else
    $_SERVER['FULL_URL'] .= $_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'];...
    See more | Go to post
    Last edited by ak1dnar; Dec 1 '07, 02:26 PM. Reason: Fixed CODE tags

    Leave a comment:


  • arunj82
    replied to how to delete selected records from database
    in PHP
    Hi,
    You can delete selected records in php. For example,

    If you are using a file called test.php,

    <input type="checkbox" name="delete" value="<?=$resu lt['id']?>" onClick="return DeleteThisData( this.value);">

    This is the checkbox you are using while retrieving datas from the database.
    I am calling a javascript function called DeleteThisData( );...
    See more | Go to post

    Leave a comment:


  • arunj82
    started a topic how to schedule a task from a php page?
    in PHP

    how to schedule a task from a php page?

    Hi ,
    is it possible to assign a task to windows scheduled task manager from PHP web Page apart from doing it in the control panel. My task is to set an alert in the windows scheduled task manager.So that it can execute any process?
    See more | Go to post

  • arunj82
    started a topic Google Housing API

    Google Housing API

    How to view and search the housing details in our sites? Its Urgent pls.
    See more | Go to post
    Last edited by pbmods; Jul 6 '07, 02:06 PM. Reason: Bold is for emphasis, not your entire post. Thanks!

  • arunj82
    started a topic drop down box problem
    in PHP

    drop down box problem

    Hi,
    In my php page i have combo box which has problem numbers.

    Eg:
    Select the Problem ID to view the Problems :
    Code:
    <select name="proid" onChange="dispValues()">
    <option value="">Please Select</option>
    <option value="PROB001">PROB001</option>
    <option value="PROB002">PROB002</option>
    ...
    See more | Go to post
    Last edited by ronverdonk; Mar 5 '07, 03:57 PM. Reason: code within tags
No activity results to display
Show More
Working...