User Profile

Collapse

Profile Sidebar

Collapse
ctsasikumar
ctsasikumar
Last Activity: Jun 6 '07, 03:54 PM
Joined: Nov 27 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ctsasikumar
    replied to date difference calculation in PHP
    in PHP
    Use Callender function in php GregorianToJD



    $x0 = GregorianToJD($ m0,$d0,$y0);
    $x1 = GregorianToJD($ m1,$d1,$y1);

    $diff = $x1 - $x0;

    it's very simple
    See more | Go to post

    Leave a comment:


  • ctsasikumar
    replied to usage of @ symbol in php
    in PHP
    Hi krishna,

    php 3 types of error is there.

    1.Normal error
    2.Warning error
    3.Fatal Error.

    the function before @ is used avoid to show error message in waring errors...
    See more | Go to post

    Leave a comment:


  • HI ,

    foreign key it's possible innodb table engine only.default mysql table engine is Myisam.so when you create table change the table engine inot innodb

    u create table in through via phpmyadmin..

    select on Table type innodb
    See more | Go to post

    Leave a comment:


  • ctsasikumar
    replied to displaying distinct rows
    in PHP
    [php]

    //query execution
    $count=mysql_nu m_rows($query);
    for($i=0;$i<$co unt;$i++)
    {
    $get_resutl=mys ql_fetch_array( $query)

    $filed1=$get_re sutl['filed_name1'];
    $filed2=$get_re sutl['filed_name2'];
    $filed3=$get_re sutl['filed_name3'];

    if($i==0)
    {
    echo $filed1;
    }

    echo $filed2;
    echo $filed3
    echo "<br>";...
    See more | Go to post

    Leave a comment:


  • ctsasikumar
    started a topic Anybody Knows PyGreSQL User name Password

    Anybody Knows PyGreSQL User name Password

    Hello Guys,
    Now I am Using Python With Postgresql database.I read all place No need user name and password for Login Postgressql only database name is enough.But i tried select database this user don't have permission showing.anybody know user name and password of PyGreSQL


    Thanks and Regards
    Sasikumar.T
    See more | Go to post

  • ctsasikumar
    started a topic Single part refersh

    Single part refersh

    Hai Guys,

    Anybody knows How to refersh a sigle part in a page.i know meta refersh and heder rediect refersh.What want is whole page single part only refersh partiular time period..Please helme

    Thanks and Regards
    Sasikumar.T
    See more | Go to post

  • ctsasikumar
    replied to Extra rows being put into database
    in PHP
    Hai check the condition

    [php]

    if($heading!='' )
    {
    //execute insert query......


    after insert clear all values

    $heading='';

    }
    [/php]

    so next time referesh the value is null...
    when will submit the value automatically insert

    Sasi
    See more | Go to post

    Leave a comment:


  • ctsasikumar
    replied to form validation
    in PHP
    Hai Using This code Form validation PHP+Mysql+Javas cript
    [php]
    home.php
    <SCRIPT language="javas cript" type="text/javascript">

    // Set path to PHP script
    var phpscript = 'login.php';

    function createRequestOb ject() {

    var req;

    if(window.XMLHt tpRequest){
    // Firefox, Safari, Opera...
    req = new XMLHttpRequest( );...
    See more | Go to post

    Leave a comment:


  • ctsasikumar
    replied to Importing data into combo box
    in PHP
    Hai Using ajax concept

    [PHP]
    file name:country_co de.php
    <?
    $connect=mysql_ connect("localh ost","root","") ;
    $select_db=mysq l_select_db("co untry",$connect );
    ?>
    <SCRIPT LANGUAGE="JavaS cript">
    <!--
    var req
    function gettest(key)
    {
    //alert(key);
    req = GetXmlHttpObjec t();
    req.open('POST' ,'getdatbase.ph p',...
    See more | Go to post

    Leave a comment:


  • ctsasikumar
    replied to date difference
    in PHP
    Hai ...

    GregorianToJD this is php function...

    this function syatax is
    gregoriantojd(m onth,day,year);

    ....

    so i get in the curret date value is first value

    $current_year=d ate("Y");
    $current_month= date("m");
    $current_day=da te("d");

    $current_date=g regoriantojd($c urrent_month,$c urrent_day,$cur rent_year);
    ...
    See more | Go to post

    Leave a comment:


  • ctsasikumar
    replied to date difference
    in PHP
    Hai Use this code it's working perfeclty...... ..i done this same type of application

    $database_date= $acess[3];
    $database_date. "<br>";
    $check_date=exp lode("-",$database_dat e);
    $current_year=d ate("Y");
    $current_month= date("m");
    $current_day=da te("d");
    $end_year=$chec k_date[0];
    $end_month=$che ck_date[1];
    ...
    See more | Go to post

    Leave a comment:


  • hai try this code..i think this is working perfectly

    preg_match_all( '/\<tr\>(.*?)\<\/tr>/is', $content, $matches);...
    See more | Go to post

    Leave a comment:


  • ctsasikumar
    replied to Need autologin facility to other site.
    in PHP
    ya same think i want.....it's perl it's possible using
    mechanize; module folow link is there.any one konws auto login in php...
    See more | Go to post

    Leave a comment:


  • ctsasikumar
    replied to with out submit button click form submit
    in PHP
    Hai MadMidget

    thank for ur replay.....

    the value is coming.how to go next page...just my think is simeple.i will run one progarm.it's automtically login and show mail inbox.it's possible in perl using

    mechanize; module
    $ie->set_fields(
    Email =>'testuser',
    Passwd=>'test'
    );
    $ie->click();

    the same equal function i needed......
    See more | Go to post

    Leave a comment:


  • ctsasikumar
    started a topic with out submit button click form submit
    in PHP

    with out submit button click form submit

    Hai freinds

    With out submit button how to submit this form in php sever side.using post method

    i have set the value.get method menas no probs.pass the value usl....

    Using post method how is possible.



    <?php

    $postdata = http_build_quer y(
    array(
    'username' => 'user',
    'password' => 'user123',

    )...
    See more | Go to post

  • ctsasikumar
    replied to Want to include RSS feeds on my web page
    in PHP
    Hey,

    Here convert rss to html php code is there

    http://www.phpclasses.org/browse/package/2831.html

    click this link...i think U used on SEO purpose Is it correct.

    SASI...
    See more | Go to post
    Last edited by pbmods; Oct 28 '07, 08:35 PM. Reason: Fixed Link.

    Leave a comment:


  • ctsasikumar
    replied to Q: file path in php includes
    in PHP
    Hey

    i think this is bestwy
    $root=$_SERVER['DOCUMENT_ROOT'];
    $path=$root."/include/filename.php";
    include($path);...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...